Introduction to Java – Multiple Choice Questions (MCQs)
-
-
2. Which of the following is NOT a core principle of Java?
-
3. What is the Java Virtual Machine (JVM)?
-
4. What is bytecode in Java?
-
5. Which tool is used to compile Java source code into bytecode?
-
6. Which tool is used to run Java bytecode?
-
7. What is the extension of a Java source code file?
-
8. What is the extension of a compiled Java bytecode file?
-
9. Which of the following is a valid entry point for a Java application?
-
10. What does the `public` access modifier indicate?
-
11. What does the `void` keyword indicate in a method declaration?
-
12. What is `String[] args` in the `main` method?