Hi,
What is the use of JDK? Is JRE same as JDK?
Thanks
What is the use of JDK and why it?s so important?
The JDK stands for Java Development Kit which is a programming toolkit from Oracle for development and deployment of Java applications. The JDK is used to build Java applications. It comes with the tools for compiling the Java program. If you download and install JDK you will get Java development tool for compiling your program (using javac compiler) and Java runtime for running the program code(using java runtime).
No, java is used to run applications on the java platform as well as other languages. There are many different JVM models, the JRE is the most famous one.
Why is JDK used and what makes the version of java so different?
The JDK is tool form compiling your program and it also contains the runtime for running/testing your program. Java is developed in such a manner that it allows Java program to run across multiple platform. Once compiled Java programs can be run on different platform on the JVM installed on the host machine. There are different versions for each operating system platform. For example Java/JDK is available for Windows, Linux, Mac etc.. For running Java program on host platform supported Java must be installed and configured. For running Java program on Windows you need JRE for Windows, similarly for Linux you need JRE for Linux and so on. JDK and JRE is available for almost all the operating system and you can download it from Oracle or Open JDK home page.
How does the JRE work?
JRE is runtime for Java program which runs your code developed in Java programming language. JRE first reads your compiled Java program(.class file) then compiled it into machine code for the host machine. For example if you are running your code on Linux then JRE compile your .class file into machine code for Windows and then run on the Windows machine in runtime.
If you are running same program on Linux then JRE will convert your program to machine code for Linux before running it in Linux machine. These steps are done in runtime, due to this Java program runs little slow as compared to the programs developed in C or C++.
Thanks
HI,
The JRE is included in all the released version of Oracle Java platform. Therefore you can use it to check when there are any security updates released for Java Platform and to check the installation process of the latest update released.
Check Java tutorials at:
Thanks
Ads