Java SE, Java EE, and Java ME are Java platform types. A platform is a creation kit for creating Java programs. APIs are included in the platform, and SE, EE, and ME have different types of APIs.
SDK, JDK, JRE, and JVM are the names of software used to develop and execute Java. They are related as shown in the figure.
First, the SDK (Software Development Kit) is a development kit that includes everything you need to develop a program. Since the platform mentioned above is a creation kit, you can only create programs, but the SDK can use convenient functions when creating programs, and you can execute and debug the created programs. Among them, the development kit for developing Java programs is called JDK (Java Development Kit). In other words, the JDK can be said to be a Java SDK.
The JDK contains software for executing Java programs, and that software is called the JRE (Java Runtime Environment).
The JRE contains a virtual machine that allows Java programs to run on any operating system. The virtual machine is called a JVM (Java virtual machine).