Basic Java Interview questions

in Programming

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.

  1. What is Java?

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:

  • Java is reusable
  • Unlike other programming language Java gives main emphasis to data instead of procedure thus making it more users friendly.
  • Java is very secure language as none of the data can be accessed by the external or third party function directly without the first user permission.
  • Java is platform independent.

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.

Author Box
Richa Pandey has 5 articles online

A freelance writer writing for pioneer website http://www.skill-guru.com which specializes on GRE and GMAT based content and preparation material along with providing information on Technical products and services.

Add New Comment

Basic Java Interview questions

Log in or Create Account to post a comment.
     
*
*
Security Code: Captcha Image Change Image
Showing 1 comments

Sort by: Subscribe by RSS

  • comment_image

    Jörg Bächtiger- 2011/02/24 21:18:38 pm

    The answer to: 6. What do you mean by Java packaging Sorry, this is nonsense.. The packaging is used to group related classifiers together. It does NOT categorise the classifiers. This is a common mistake by unexperienced programmers.It leads to unreusable code. Regards

Related searches:

Basic Java Interview questions

This article was published on 2011/02/24