What keyword is used to create a new object in Java?
new
What do we call an instantiation of a class in Java?
An object
What keyword is used to inherit from a superclass?
extends
What do we call an issue where code breaks while running, like dividing by zero?
Runtime error
What layout manager stacks elements vertically in a GUI?
VBox
What is the entry point method of a Java program?
public static void main(String[] args)
What is the term for the blueprint used to create objects?
A class
What is the term for the relationship where one class "has a" reference to another class?
Composition
What mechanism do we use to catch and handle exceptions in Java?
try/catch
What JavaFX node lets a user select an option from a list like a dropdown?
ComboBox
What do we call a block of code that performs a specific task and can return a value?
Method or Function
What keyword is used to refer to the current object inside a method or constructor?
this
What keyword is used when a class adopts an interface’s method requirements?
implements
What type of error occurs when you forget a semicolon or misspell a keyword?
Syntax error
What is the GUI component that represents a clickable item that triggers an action?
Button
What data structure in Java allows dynamic resizing and element access by index?
ArrayList
What do we call defining multiple methods with the same name but different parameters?
Overloading
What keyword can a subclass use to call the constructor of its parent class?
super
What do we call an error that causes the program to produce incorrect output but doesn’t crash?
Logic error
What is the purpose of a Label in JavaFX?
To display text or images to the user
What Java Class lets us write output to a file?
PrintWriter
What OOP principle means combining data and methods together and restricting outside access?
Encapsulation
Can a Java class extend more than one class? If not, how can it achieve similar functionality?
No, Java does not support multiple inheritance with classes. A class can implement multiple interfaces to achieve similar functionality.
Why is a base case essential in a recursive method?
Without a base case, the method will call itself infinitely, causing a stack overflow error.
What layout manager places elements in top, bottom, left, right, and center positions?
BorderPane