Important Java Mcq 1

What is byte code in the context of java?  

a. The type of code generated by the java compiler

b. The type of code generated by the Java virtual machine

c. It is another name for a java source file

d. It is another name for comments written within a program

Answer:

a. The type of code generated by the java compiler.

Explanation:

During the java compilation process, the compiler compiles the source code it generates a .class file, this file contains the byte code. In simpler terms, as soon as the java program is compiled bytecode is generated.

Related MCQs

How restrictive is the default?

a. Less restrictive than public. b. More restrictive than public, but less restrictive than protected. c. More restrictive than protected, but less restrictive than private.

Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?