top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Differentiate between JDK ,JRE & JVM in java?

+2 votes
560 views
Differentiate between JDK ,JRE & JVM in java?
posted Dec 11, 2014 by Joy Nelson

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+2 votes

JDK means Java Development Kit which contains tools and programs 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.

JDK JVM JRE

Now coming to JVM i.e. Java Virtual Machine, as I said when we compile a Java file, output is a ‘.class’ file which consists of Java byte codes which are understandable by JVM. Java Virtual Machine interprets the byte code into the machine code depending upon the underlying operating system and hardware combination.

Read more at: http://tech.queryhome.com/67790/what-is-the-difference-between-jdk-and-jvm

answer Dec 12, 2014 by Salil Agrawal
+1 vote

JDK:

stands for Java Development Kit.

USES:
It is the most widely used Java Software Development Kit.

JRE:

stands for Java Runtime Environment

USES:
It is an implementation of the Java Virtual Machine which executes Java programs

JVM

stands for Java Virtual Machine

USES:
It is an interpreter.

answer Dec 12, 2014 by Karthick.c
Similar Questions
+2 votes

I am using IntelliJ IDEA 13.1.4 and also tried the latest release 14.
Running SBT I get the following error:
Error:Cannot determine Java VM executable in selected JDK
I have JDK 1.7 installed on my machine and on PATH.

+1 vote

I'm trying to install android studio . But it needs java . I try to install openjdk .But it keeps asking for java . Can some tell me how to install the simple way to install java and jdk in fedora 21 64bit ?

...