What is the difference between JDK and JRE?

前端 未结 20 1893
孤独总比滥情好
孤独总比滥情好 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 03:54

    suppose, if you are a developer then your role is to develop program as well as to execute the program. so you must have environment for developing and executing, which is provided by JDK.

    suppose, if you are a client then you don't have to worry about developing.Just you need is, an environment to run program and get result only, which is provided by JRE.

    JRE executes the application but JVM reads the instructions line by line so it's interpreter.

    JDK=JRE+Development Tools

    JRE=JVM+Library Classes

提交回复
热议问题