

MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is use of interpreter? |
A. | They convert bytecode to machine language code |
B. | They read high level code and execute them |
C. | They are intermediated between JIT and JVM |
D. | It is a synonym for JIT |
Answer» C. They are intermediated between JIT and JVM | |
2. |
What is the extension of compiled java classes? |
A. | .class |
B. | .java |
C. | .txt |
D. | .js |
Answer» B. .java | |
3. |
What is the extension of java code files? |
A. | .class |
B. | .java |
C. | .txt |
D. | .js |
Answer» C. .txt | |
4. |
Which statement is true about java? |
A. | Platform independent programming language |
B. | Platform dependent programming language |
C. | Code dependent programming language |
D. | Sequence dependent programming language |
Answer» B. Platform dependent programming language | |
5. |
Which component is responsible to optimize bytecode to machine code? |
A. | JVM |
B. | JDK |
C. | JIT |
D. | JRE |
Answer» D. JRE | |
6. |
Which component is responsible to run java program? |
A. | JVM |
B. | JDK |
C. | JIT |
D. | JRE |
Answer» E. | |
7. |
Which component is used to compile, debug and execute java program? |
A. | JVM |
B. | JDK |
C. | JIT |
D. | JRE |
Answer» C. JIT | |
8. |
WHAT_IS_USE_OF_INTERPRETER??$ |
A. | They convert bytecode to machine language code |
B. | They read high level code and execute them |
C. | They are intermediated between JIT and JVM |
D. | It is a synonym for JIT |
Answer» C. They are intermediated between JIT and JVM | |
9. |
How can we identify whether a compilation unit is class or interface from a .class file? |
A. | Java source file header |
B. | Extension of compilation unit |
C. | We cannot differentiate between class and interface |
D. | The class or interface name should be postfixed with unit type |
Answer» B. Extension of compilation unit | |
10. |
Which of the below is invalid identifier with the main method? |
A. | public |
B. | static |
C. | private |
D. | final |
Answer» D. final | |
11. |
Which component is responsible for converting bytecode into machine specific code? |
A. | JVM |
B. | JDK |
C. | JIT |
D. | JRE |
Answer» B. JDK | |