1. What is JDK?
Java Development Kit (in short JDK) is Kit which provides the environment to develop and execute (run) the Java program. JDK is a kit (or package) which includes two things.
- Development Tools (to provide an environment to develop your java programs)
- JRE (to execute your java program).
JDK = JRE + Development Tools
Note: JDK is only used by Java Developers.
2. Can you name some of java development tools?
Appletviewer: which enable to run java applets.
javac: Java compiler, it converts java source code (.java file) to byte code (.class file).
Java: Java interpreter executes byte code.
Jdb: Java debugger, it helps to find errors in programs.
3. What is JRE?
Java runtime Environment (JRE) is part of JDK.
JRE provides the minimum requirements for executing/develop a Java application. It consists of the Java Virtual Machine (JVM), core classes, and supporting libraries.
JRE = JVM + Library classes
4. What is JVM?
Java Virtual Machine (JVM) is responsible for executing the java program line by line hence it is also known as interpreter.
The JVM is responsible for interpreting Java bytecode (.class file) and translating this into actions (into machine readable form) or operating system calls.