ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Difference between JDK, JRE, JVM
 Question Submitted By :: Ashok
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Difference between JDK, JRE, JVM
Answer
# 1
JDK or the Java Development Kit is a set of a Java compiler,
a Java interpreter, developer tools, Java API libraries,
documentation which can be used by Java developers to
develop Java-based applications.

JRE or the Java Runtime Environment is a minimum set that
includes a Java interpreter, Java API libraries, Java
browser plug-in, which make up the minimum environment to
execute Java-based applications.

The JVM or Java Virtual Machine is the core of the Java
platform and is a part of both the JDK and JRE that
translates Java bytecodes and executes them as native code
on the client machine.

JDK includes a JRE as as subset.
 
Is This Answer Correct ?    36 Yes 10 No
Ranganathkini
 
  Re: Difference between JDK, JRE, JVM
Answer
# 2
JDK is a software bundle consists of binary files such as
(javac,java,javadoc,jdb,javap,rmic....),java library files 
(both old and new)and some header files. Development 
environment requires this software.

JRE is also a software bundle same as JDK excluded with 
some binary files( especially compiler - javac and 
rmic ).Required to run applications of production 
environment ( on client host system ).

JVM is available in both JDK and JRE. Java.exe file is used 
to initiate VM process.The default heap size is 2MB and the 
Max.heap size is 64MB.VM comes in two flavours...

-Hotspot client VM
-Hotspot server VM
 
Is This Answer Correct ?    6 Yes 9 No
P.l.n.kumar
 
 
 
  Re: Difference between JDK, JRE, JVM
Answer
# 3
JDK: Java Developer Kit contains tools needed to develop 
the Java programs, and JRE to run the programs. The tools 
include compiler (javac.exe), Java application launcher 
(java.exe), Appletviewer, etc…

Compiler converts java code into byte code. Java 
application launcher opens a JRE, loads the class, and 
invokes its main method.

You need JDK, if at all you want to write your own 
programs, and to compile them. For running java programs, 
JRE is sufficient.

JRE: Java Runtime Environment contains JVM, class 
libraries, and other supporting files. Actually JVM runs 
the program, and it uses the class libraries, and other 
supporting files provided in JRE. If you want to run any 
java program, you need to have JRE installed in the system.

JVM: Java Virtual Machine interprets the bytecode into the 
machine code depending upon the underlying operating system 
and hardware combination. It is responsible for all the 
things like garbage collection, array bounds checking, etc… 
JVM is platform dependent.

The JVM is called "virtual" because it provides a machine 
interface that does not depend on the underlying operating 
system and machine hardware architecture. This independence 
from hardware and operating system is a cornerstone of the 
write-once run-anywhere value of Java programs.
 
Is This Answer Correct ?    14 Yes 2 No
Pradeep Panwar(sse)
 
  Re: Difference between JDK, JRE, JVM
Answer
# 4
JDK is the java development kit contains the executable 
files
JRE is the java run time envirnment contains all the 
runtime jar files
JVM is the java virtual machine which is used to convert 
the byte code to user understandable code
 
Is This Answer Correct ?    6 Yes 8 No
Ravikiran
 
  Re: Difference between JDK, JRE, JVM
Answer
# 5
JDK- JDK stands for java development kit which contain jre
and jvm and other supporting tools for development of programs.

JRE- JRE stands for java runtime environment which provide
the neccesory jar file that compile source code into byte
code. and it contain java virtual machine .

JVM- JVM stands for java virtual machine that convert byte
code into native code . the native code are those code that
are understandable by machine.
 
Is This Answer Correct ?    13 Yes 4 No
Alok Kumar Singh
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
How can be define MARKER interfce in java  1
what is difference between abstract and interface? can i give real time example for the two topics?  6
Is 'sizeof' a keyword?  5
Why to give the file name same as the public class name in java?  3
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not???? Accenture8
Is Java is 100% pure OOPS? Explain?  15
Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection. Accenture2
What is the ResourceBundle? Elementus-Technologies2
can we declare private class in java file?  6
List interface?  2
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects  3
what is meant by serialization?  6
How to call a Stored Procedure from JDBC? Satyam2
basic difference b/w ALL types of JDBC driver. Systematix1
which swing component is similar to rich text box in .net/vb  1
class A{ class B{ } } in which name u save the file,its the program compile? HCL6
what is use of session tracking ?with example? Photon1
What services that container provides?  1
Differentiate constructor and a method and how are it be used? Wipro5
Which containers use a FlowLayout as their default layout?  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com