1.

Role of JDK, JRE and JVM

Answer»

Details about JDK, JRE and JVM in Java are given as follows:

Java Development Kit (JDK)

The Java SE, Jakarta EE or the Java Me are platforms whose implementation is done by the Java Development Kit. The basic contents of the JDK are resources for a Java application and the JVM. A LIST of some of the JDK programming tools is given as follows:

  1. pack200 - This is a JAR compression tool.
  2. appletviewer - This runs and debugs the Java applets without using a web browser.
  3. javah - This is used to write the native methods and is a stub generator as well as C header.
  4. JConsole - This is a graphic management tool.
  5. jstack -This prints the stack traces of java threads
Java Runtime ENVIRONMENT (JRE)

The Java Runtime Environment consists of the Java VIRTUAL Machine, supporting files and core classes. This is basically the minimum requirements to execute a Java application. The JRE is actually a component of the JDK but it can be downloaded separately from the rest.

Some of the components of the JRE are given as follows:

  1. Java Virtual Machine and Server Virtual Machines.
  2. User Interface Toolkits such as Java 2D, AWT, Sound, Swing etc.
  3. Base LIBRARIES such as I/O, Beans, JNI, Networking etc.
  4. Lang and Util base libraries such as Zip, Collections, Versioning etc.
  5. Deployment techniques
Java Virtual Machine (JVM)

The Java Virtual Machine allows a computer to run Java programs. It can also run programs in other languages that are beforehand compiled to Java bytecode. The JVM is a virtual machine.

Some of the OPERATIONS performed by the JVM are given as follows:

  1. The code can be loaded and executed by the Java Virtual Machine.
  2. The JVM also provides the runtime environment.
  3. The code is verified by using the JVM.


Discussion

No Comment Found