
Play Store Application link – https://play.google.com/store/apps/details?id=com.ideepro.java25hours
Get this on action on youtube –
Comparison | JDK | JRE | JVM |
---|---|---|---|
Definition | A software development kit used to develop Java applications | A software package that contains what is required to run a Java application | An abstract computing machine that enables a computer to run a Java program |
Includes | Compiler (javac), interpreter (java), libraries, documentation, other tools | Interpreter (java), libraries, Java Plug-in (for running Java applets in a web browser) | JIT, Libraries and class files |
Purpose | To develop Java applications | To run Java applications | To execute Java bytecode |
Installation | Required to develop Java applications | Required to run Java applications | Comes bundled with JDK or JRE |
π‘(1) J.V.M (Java Virtual Machine)-
J.v.m = j.i.t(just-in-time compiler)+cache
π‘-> J.v.m Doesnβt exists physically, It just resides in RAM
π‘-> J.v.m provides specifications to execute java byte-code.
π‘-> J.v.m is platform dependent and easily available for many platforms(OS)
Note – We can’t refer any particular file as windows, it’s a group of specifications which provides environment to run software, similarly JVM only runs Java compiled codes(bytecodes).

*JVM internal architecture*-

π‘(2)JRE (Java Runtime Environment)-
π‘β> implementation of JVM.
π‘β> physically exists.
JRE = JVM + Set of libraries (i.e. jar) + Other Files
Note – To run java program we only need to install JRE, to develop java program we need to install JDK.

π‘(3)JDK (Java Development Kit)-
π‘β> physically exists.
π‘ JDK = JRE + Development tools(i.e. javac, java etc)

Interview Questions β
- How to install JVM?
- Is Windows JVM different than Linux/Mac JVM?
- Does installing JDK automatically installs JRE and JVM ?
If you would like to increase your familiarity just keep visiting this website and be updated with the hottest
news posted here.
you can consider jvm as a computer for which machinre language is bytecode .
And jre builds this virtiual computer (i.e jvm) on your machine(p.c) so it can run program .
Sir can you plz elaborate some useful tools(Java,javaw,javap etc.) of jdk
yes, of course…
Basic Tools
These tools are the foundation of the JDK. They are the tools you use to create and build applications.
1-javac The compiler for the Java programming language.
2-java The launcher for Java applications.
3-javadoc API documentation generator.
4-apt Annotation processing tool.
5-jar Create and manage Java Archive (JAR) files.
6-jdb The Java Debugger.
7-javap Class file disassembler