Before starting your job search, look at these common Java interview questions asked during real interviews and understand the answers, but instead of memorizing the answers try to complete further research and come with your own personal solution for the interview question. The more prepared you are for what you will encounter, the more successful you will be. This collection of Java interview question could be also useful for software developers who need to interview Java developer.

Java Interview Question 4: What is the difference between JRE and JDK?

Ask a simple java interview question, such as what is JRE and JDK? (a legitimate interview question) and you still will get a few incorrect answers. Apparently even Senior Java developers sometimes being confused about the functionality of JRE and JDK.

What is JRE?

JRE is Java Runtime Environment. It is obviously JVM (Java Virtual Machine), core libraries and other additional components requried to run applications and applets written in Java programming language.

What is JDK?

JDK is Java Software Development Kit, it includes JRE, compilers and tools to create, compile and debug Java programs.

Both JRE and JDK are basically a bunch of directories with Java related files, but JRE is smaller than JDK. Any user who wants to run applets and applications written using Java need JRE, while Java software developer who create applets and applications need JDK.

No comments: