Java today is one of the most sought programming languages by the developer, programmer all over the world. Java platform is being used for development of all kind of rich applications in phone, tablets, desktop, speakers & other IT enabled software. Thus demand for Java developers has increased in the market & everybody is jumping on the bandwagon to secure the job of Java developer. So if you are also in the race & are going to face a technical Java interview questions during recruitment but don’t know where to look for the basic Java interview questions then complete ready reckoner guide is here for you.
Java is a platform independent & object oriented programming language called OOPS. This language was discovered by Mr. James Gosling of Sun Microsystems in early 1991.
2. What is class & define abstract class in Java?
In simple Java terms class refer to a group of similar objects with the same attributes (data structure) and behavior (function). Java consists of different types of classes such as abstract class, interface class etc. Abstract class is a differential implemented class means some portion of this class can be fully implemented during execution while other portion can not be fully implemented.
3.What is the difference between an interface & abstract class in Java?
An abstract class has no direct instances in the system & consists methods inside the code strings while such feature is absent in the interface class.
4.Explain some of the basic features of Java.
Here you can explain many features of Java such as:
5. Explain difference between a queue & stack
The basic difference between queue and stack is that queue works on FIFO concept that is first in first out rule while the stack works on LIFO concept means last in first out rule.
6. What do you mean by Java packaging
Java packaging helps in neat & concise filing of different classes into the respective directories thus making it easier for the user to categorise the data properly. So if you are dealing with various modules & want to organize your files into proper classes without much hassle, then java packaging is the apt solution for you.
Besides these basic Java interview questions you will be asked to write some basic programs in Java language explaining different command used in each steps by the interviewer. The interviewer may also give you some already written program & you have to find the error present in any steps of the given program stating the reason of errors present with proper logics. So just brush up your Java fundamentals from any resources available to you & practice some programs execution & running on computer to master the language & sale through the Java interview questions easily.