Wednesday 3 June 2020

UGC NET Computer Science December 2019 | Question 82

Question 82
Java Virtual Machine (JVM) is used to execute architectural neutral byte code. Which of the following is needed by the JVM for execution of Java Code?
  1. 1. Class loader only
  2. 2. Class loader and Java Interpreter
  3. 3. Class loader, Java Interpreter and API
  4. 4. Java Interpreter only
Answer : 2. Class loader and Java Interpreter

Explanation
Java Virtual Machine (JVM) is used to execute architectural neutral byte code. It having two parts Class loader and Java Interpreter. A class loader first reads the .class file and save the byte code in the method area. The Java interpreter Java translate a class file into code that can be executed natively on the underlying machine.

The Java Virtual machine (JVM) is the virtual machine that runs on actual machine (your computer) and executes Java byte code. JVM makes java portable (write once, run anywhere). Each operating system has different JVM, however the output they produce after execution of byte code is same across all operating systems.

So, option 2 is correct answer

Reference : JVM Architecture

PreviousNext
UGC NET CS December 2019 - Question 81UGC NET CS December 2019 - Question 83

3 comments:

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts