Difference between JDK and JRE
JDK is an acronym for Java Development Kit . It is a bundle of software components that is used to develop Java based applications includes JRE , and the compilers and tools (like JavaDoc, and Java Debugger) to create and compile programs.
JRE is an acronym for Java Runtime Environment . It is an implementation of the Java Virtual machine, which actually executes Java programs. It includes the JVM (Java Virtual machine), core libraries and other additional components to run applications and applets written in Java. The JDK is a superset of the JRE , and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications. It also includes browser plugins for Applet execution. The JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications.
Usually, when you only care about running Java programs on your browser or computer you will only install JRE . That's all you need. On the other hand, if you are planning to do some Java development , you will also need JDK .
- Java Interview Questions-Core Faq
- Important features of Java
- What gives Java its 'write once and run anywhere' nature?
- What is JVM and is it platform independent?
- What is Just-In-Time (JIT) compiler?
- What is the garbage collector in Java?
- What is NullPointerException in Java
- Difference between Stack and Heap memory in Java
- How to set the maximum memory usage for JVM?
- What is numeric promotion?
- Why do we need Generic Types in Java?
- What does it mean to be static in Java?
- What are final variables in Java?
- How Do Annotations Work in Java?
- How do I use the ternary operator in Java?
- What is instanceof keyword in Java?
- How ClassLoader Works in Java?
- What are fail-safe and fail-fast Iterators in Java
- What are method references?
- "Cannot Find Symbol" compile error