Recall & Review
beginner
What is Java?
Java is a popular programming language used to create software applications. It is known for being easy to write once and run anywhere on different devices.
Click to reveal answer
beginner
Why is Java called 'write once, run anywhere'?
Because Java programs are compiled into a special code called bytecode that can run on any device with a Java Virtual Machine (JVM), making it very flexible.
Click to reveal answer
beginner
What is the Java Virtual Machine (JVM)?
The JVM is a program that runs Java bytecode on any device. It helps Java programs work the same way on different computers or phones.
Click to reveal answer
beginner
Name two common uses of Java.
Java is often used to build Android apps and large business software systems.
Click to reveal answer
intermediate
Is Java a compiled or interpreted language?
Java is both. It is first compiled into bytecode, then the JVM interprets or just-in-time compiles this bytecode to run the program.
Click to reveal answer
What does JVM stand for in Java?
✗ Incorrect
JVM stands for Java Virtual Machine, which runs Java bytecode on any device.
Why is Java called platform-independent?
✗ Incorrect
Java programs run on any device that has a JVM, making it platform-independent.
What is the first step in running a Java program?
✗ Incorrect
Java source code is first compiled into bytecode before running.
Which of these is a common use of Java?
✗ Incorrect
Java is widely used to create Android apps.
What type of language is Java?
✗ Incorrect
Java is compiled into bytecode and then interpreted or just-in-time compiled by the JVM.
Explain what Java is and why it is popular.
Think about how Java runs on many devices without changes.
You got /4 concepts.
Describe the role of the Java Virtual Machine (JVM).
JVM is like a translator between Java code and the device.
You got /3 concepts.