The main difference between them is that the JDK provides the environment for developing and running Java programs while the JRE…