Core Java Q&A

Regardless of your level, you must do well in Core Java Interview Questions. Here are some basics questions and answers extracted from the companion and essentials books.

Core Java Interview Questions and Answers on:

(click on the headings highlighted in yellow)

Java multi-threading Q&A

If you are going for Java interviews to work on large scale systems, expect lots of multi-threading interview questions. These are more beginner or fresher level questions and if you are already good with the basics, try more intermediate to advanced level coding questions and answers on Java multi-threading at


Java Collection Q&A

Java Collections Framework (i.e. Data structures) contains most commonly asked Java interview questions. A good understanding of Collections framework is required to understand and leverage many powerful features of Java technology. Here are a few important practical questions which can be asked in a Core Java interview.


Java Object Oriented (OO) Q&A

If you asked me to pick a section that is most popular with the interviewers, this is it. If you don't perform well in Object Oriented (i.e. OO) programming , your success rate in interviews will be very low. Good interviewers will be getting you to analyze or code for a particular scenario. They will be observing your decisions with interfaces and classes, and question your decisions to ascertain your technical skills, analytical skills, and communication skills. You can't memorize your answers. This section requires some level of experience to fully understand.



Compile-time Vs Runtime Q&A

During development and design, one needs to think in terms of compile-time, run-time, and build-time. It will also help you understand the fundamentals better. These are beginner to intermediate level questions.


How will you go about explaining the following Java concepts to a beginner?

Process Vs Threads, Heap versus Stack, Local variables versus instance variables, How do threads communicate with each other?, Are Java methods reentrant?, Does Java support recursive method calls? Object creation and Garbage collection, Can you garbage collect objects that have a circular reference?


Java Interview Questions & Answers: user defined key class

This is one of my favorite core Java interview questions as not knowing this can cause subtle and intermittent issues in Java. The issues that arise from not understanding equals( ) and hashCode( ) contract can be hard to debug.


Java coding interview questions and answers

These Java coding questions and answers are extracted from the book "Core Java Career Essentials". Good interviewers are more interested in your ability to code rather than knowing the flavor of the month framework.


Tricky Java interview questions and answers

The tricky and open-ended interview questions are generally used to test your soft skills and attitude to make a collective decision.


Core Java Interview Questions

Open ended and coding questions are very popular with the interviewers. Can you talk through the output of the following code snippet?....., In your experience, what are some of the most common errors Java programmers make?, What does the following code do? Can you talk us through the code highlighting some of the key language and design features? …....., How would you go about designing a system as described below? …....., etc