The JVM and the Java Ecosystem Flashcards
What is the process of converting a .java file into a .class file called?
a) Executing
b) Compiling
c) Debugging
d) Interpreting
b) Compiling
What is the output of the Java compiler?
a) .exe file
b) .java file
c) .class file
d) .bin file
c) .class file
What phase is commonly referred to as the build phase in Java development?
a) Running the program
b) Writing the source code
c) Compiling the program
d) Debugging the code
c) Compiling the program
Which of the following is NOT a programming language that can be compiled into Java bytecode?
a) Groovy
b) Scala
c) Python
d) Kotlin
c) Python
Which language is recommended for Android development and can be compiled into Java bytecode?
a) Groovy
b) Scala
c) Kotlin
d) JavaScript
c) Kotlin
What does the Java Runtime Environment (JRE) include?
a) Only the Java compiler
b) Java libraries and the JVM
c) Only the JVM
d) Java libraries and the JDK
b) Java libraries and the JVM
What is required to develop and compile Java programs?
a) JVM
b) JRE
c) JDK
d) Math library
c) JDK
Which of the following is included in the Java Development Kit (JDK) but not in the JRE?
a) Java Virtual Machine
b) Java compiler
c) Java libraries
d) Math library
b) Java compiler
Which tool in the JDK helps with finding errors in Java programs?
a) Java Virtual Machine
b) Math library
c) Java debugger
d) Java runtime environment
c) Java debugger
What is one of the key features of the JVM?
a) It allows Java programs to run on any platform with a JVM
b) It converts Java code directly into hardware instructions
c) It only runs Java programs on Windows
d) It compiles Java code into bytecode
a) It allows Java programs to run on any platform with a JVM