Top 30 java interview question for Freshers: List of most commonly asked questions from Core Java. A must-know list for all Freshers as ...
Top 30 java interview question for Freshers:List of most commonly asked questions from Core Java. A must-know list for all Freshers as well as Java aspirants.
Top 30 java interview question for Freshers
- Define classes and objects. How are objects created in Java?
- Why is main() in java static?
- Explain String immutability with example.
- What is the difference between String and StringBuffer/StringBuilder classes?
- List any 7 methods defined in the String class.
- What are arrays? List their advantages and disadvantages.
- Differentiate between constructors and methods?
- Describe the uses of this and super keywords in Java?
- Define constructor chaining and local chaining.
- Briefly describe any 3 paradigms of OOP along with their uses.
- Describe method overloading, method overriding and method hiding.
- Why is multiple inheritance not supported in Java? How can you indirectly achieve multiple inheritance in java?
- What is an abstract class?
- Describe an interface.
- How is abstract class different from an interface?
- Describe the visibility specifiers in Java.
- What is the default access modifier for interface methods?
- Explain the advantages of primitive types over wrapper classes and vice versa?
- What is auto boxing? What is auto un-boxing?
- Explain value type assignment and reference type assignment.
- Explain Exception handling. Draw the exception classes hierarchy.
- Describe the uses of try-catch block, throw and throws.
- Differentiate between final, finally and finalize().
- Differentiate between multi-tasking and multi-threading.
- What is the better way to make Java Threads- extending Thread class or implementing Runnable interface? Why?
- How is the run() method defined in Runnable interface called?
- Describe the states of a thread.
- Describe the Collections framework in java? Define the hierarchy.
- What is the difference between Vector and ArrayList?
- What is the difference between HashMap and HashTable ?
Don't limit these questions to yourself, share Top 30 java interview question for Freshers among all the job seekers and Java aspirants. Before you go, have you heard about any major feature changes in Java apart from the logos below?
COMMENTS