What is the difference between JDK and JRE?

前端 未结 20 1908
孤独总比滥情好
孤独总比滥情好 2020-11-22 03:31

What is the difference between JDK and JRE?

What are their roles and when should I use one or the other?

20条回答
  •  天涯浪人
    2020-11-22 04:06

    JRE

    JRE is an acronym for Java Runtime Environment.It is used to provide runtime environment.It is the implementation of JVM.It physically exists.It contains set of libraries + other files that JVM uses at runtime.

    JDK

    JDK is an acronym for Java Development Kit.It physically exists.It contains JRE + development tools.

    Link :- http://www.javatpoint.com/difference-between-jdk-jre-and-jvm

    Usually, when you only care about running Java programs on your browser or computer you will only install JRE. It's all you need. On the other hand, if you are planning to do some Java programming, you will also need JDK.

提交回复
热议问题