The JVM and the Java Ecosystem Flashcards

1
Q

What is the process of converting a .java file into a .class file called?

a) Executing
b) Compiling
c) Debugging
d) Interpreting

A

b) Compiling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the output of the Java compiler?

a) .exe file
b) .java file
c) .class file
d) .bin file

A

c) .class file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

c) Compiling the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following is NOT a programming language that can be compiled into Java bytecode?

a) Groovy
b) Scala
c) Python
d) Kotlin

A

c) Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which language is recommended for Android development and can be compiled into Java bytecode?

a) Groovy
b) Scala
c) Kotlin
d) JavaScript

A

c) Kotlin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

b) Java libraries and the JVM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is required to develop and compile Java programs?

a) JVM
b) JRE
c) JDK
d) Math library

A

c) JDK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

b) Java compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

c) Java debugger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

a) It allows Java programs to run on any platform with a JVM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly