Java Interview Question And Answer | Java Interview Question And Answer For Fresher | Core Java Interview Question And Answare | Set-01

1.What is a JVM?
 Ans: JVM is Java Virtual Machine which is a run time environment for the compiled java class files.


2.What is JDK?
 Ans: JDK means Java Development Kit. JDK comes with a collection of tools that are used for developing and running Java program.

3.Features of Java:
       1.Compiled and Interpreter
       2.Platform independent and Portable
       3.Object Oriented
       4.Robust and Secure
       5.Multithreaded and Interactive
       6.Distributed
       7.High Performance
       8.Dynamic And Extensive
       9.Familiar, simple and Small

4.What is the most important feature of Java?
 Ans: The most important feature of Java is a platform independent language.

5.Why java is platform independent?
 Ans: Java program can easily move from one computer system to another and we can compile a java program in on platform and can execute in any other platform.

6.Why java is Object Oriented ?
 Ans:Java is a true object Oriented language. Almost everything in java is an object, all program code and data inside within objects and classes. The object model of java is simple and easy to extend.

7.What is the difference between a JDK and a JVM?
 Ans: The difference between JDK And JVM is: JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.

8.What is Interpreter?
Ans: java interprets (executes) Java bytecodes.
       Java interpreter translates the Java bytecode into the code that can be understood by the Operating System. Basically, A Java interpreter is a software that implements the Java virtual machine and runs Java applications. As the Java compiler compiles the source code into the Java bytecode, the same way the Java interpreter translates the Java bytecode into the code that can be understood by the Operating System.

9.What is the use of bin and lib in JDK?
 Ans: Bin contains all tools such as javac, appletviewer, awt tool, etc., whereas lib contains API and all packages

10.What is the difference between a JDK and a JVM?
 Ans: JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.

11.What is the base class of all classes?
 Ans: java.lang.Object


Previous Next


:: Click the links below for similar type Questions and answers ::

0 comments:

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes