C Programming Multiple Choice Questions (MCQ) | IT Developer <?php echo $page_title; ?>
IT Developer

Java Programming Multiple Choice Questions (MCQ)

Introduction to Java - Multiple Choice Questions (MCQ) - Set 14



Share with a Friend

Multiple Choice Questions


Java - Introduction to Java - Multiple Choice Questions (MCQ) - Set 14

66. Which is correct order of execution?
A). Run → Compile
B). Compile → Run
C). Execute → Write
D). Write → Run
View Answer
Correct: B




67. Java program must have:
A). Class
B). main method
C). Both
D). None
View Answer
Correct: C




68. Which feature allows code reuse?
A). Encapsulation
B). Inheritance
C). Polymorphism
D). Abstraction
View Answer
Correct: B




69. Java is architecture-neutral because:
A). Uses machine code
B). Uses bytecode
C). Uses assembly
D). Uses OS code
View Answer
Correct: B




70. Java programs are portable because:
A). Hardware dependent
B). JVM based
C). OS dependent
D). Compiler dependent
View Answer
Correct: B