Java Interview Questions

Example blog post alt

Java interview questions - Basics

Java interview questions - Basics, In general compiled code in the set of instructions the CPU requires to execute a program. In java compiled code is bytecode and it does not depend on machine or OS.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 1

What do you mean by platform independency. Is java a platform independent language, What is JVM. Is JVM platform independent ?

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 2

What is Polymorphism in Java ? Polymorphism means many forms, in java it is possible to have many forms of a single method on the basis of difference in between their parameters.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 3

Here are top selected core java interview questions asked in high level interviews, these questions may be helpful for both freshers or experienced professional going for interview.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 4

How to prevent a method from being overridden in Java? To prevent a method from being overridden in java we have declare the method as final, if a method is declared as final that a subclass cannot override it.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 5

Can a class extend more than one class in Java? No, java does not support multiple inheritance. In java a class cannot extends more than one class but it can implement as many interfaces as it wants.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 6

What is a List interface in Java? What are its implementation classes? List interface is a part of Java Collections API, List interface extends Collection interface provides support for ordered collections of Objects.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 7

What if we does not pass an String array of objects to main() method ? Program will compile fine, but at runtime it will give an error ?NoSuchMethodError?.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 8

What are immutable objects in Java? In java, immutable objects are the objects which can not be changed once created. Any change to the states of these object results in a new object.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 9

What if, we import a class or package more than once in our program? We can import a class or an package as many times as we want to, neither the compiler or the JVM will complain about it.

Continue reading

Example blog post alt

100 Core Java Interview Questions and Answers - Part 10

What is synchronization in Java? In java synchronization is the ability to control the access of multiple threads to shared resources. Synchronization ensures that only one thread can access a shared resource at a time.

Continue reading

Example blog post alt

3 ways of loop or iterate through a Map implementation HashMap or TreeMap in Java

3 ways of loop or iterate through a Map implementation HashMap or TreeMap in Java, In this particular blog we will see how to loop a Map or how to iterate over a Map in Java.

Continue reading

Got a technical query, or stuck somewhere ?