- JDK (Java Development Kit): A complete toolkit for Java development, including JRE, compilers, and tools like javac for writing and running Java programs.
- JRE (Java Runtime Environment): Provides the environment to run Java programs; it includes JVM and libraries but lacks development tools.
- JVM (Java Virtual Machine): Executes Java bytecode and ensures platform independence. It’s part of both JDK and JRE.
Summary:
- JDK = JRE + Development Tools
- JRE = JVM + Libraries
- JVM = Executes Java code