JDK,JRE,JVM

https://docs.oracle.com/javase/8/docs/index.html
在這裏插入圖片描述

Java Development Kit(JDK)

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.

Java Runtime Enviroment(JRE)

JRE provides the libraries,the Java Virtual Machine,and other components to run applets and applications written in the Java programming language. In addition,two key deployment technologies are part of JRE:Java Plug-in and Java Web Start.The JRE does not contain tools and utilities such as conpilers or debuggers for developing applets and applications.
JRE=JVM+Java Packages Classes(like util,math,lang,awt,swing etc)+runtime libraries

Java Virtual Machine (JVM)

As you might know it run the bytecodes. It make Java platform independent because it executes the .class file which you get after you compile the Java program regardless of whether you compile it on Windows,Mac or Linux.