Core java interview questions and answers asked by the top recruiters in the world. These core java interview questions and answers aim to prepare you to pass any interview that deals with core java. Those top 55 Core java interview questions are selected over the years by recruiters to test the knowledge of the candidate in java. We have also a core java tutorial that you can check in order to learn the basics of the java language.
1) What is JVM? JVM stands for Java Virtual Machine. It simulates a real computer and provides the runtime environment for running java applications. In the first step, the java source code is converted to a byte code (binary code that can be understood by the JVM : instruction set of the JVM) by the java compiler (javac). This byte code is converted by the JVM into a machine code (binary). Then, the machine code is run by the computer that has the JRE installed. Actually, JVM interprets the byte code and runs the java program. It uses the class libraries, and other files provided in JRE in order to accomplish this task.
2) What is JRE ? JRE is an acronym of Java Runtime Environment. Java Runtime Environment is an executable file that includes JVM, class libraries (util, math,etc), and other files. JRE doesn’t include any development tool like compiler, debugger, etc. JRE = JVM + Java standard classes (math, lang, util, etc) + runtime libraries JREs are available for download in Oracle website. There are many versions for each hardware configuration (32 bits/ 64 bits) or operating system (windows, linux, Mac OS, etc).
3) What is JDK ? JDK stands for Java Development Kit.