This keyword is used to define a method that belongs to the class rather than the object.
What is static?
A class is a blueprint for creating these.
What are objects?
The number of elements in an array can be found using this property.
What is .length?
A class can only extend this many other classes in Java.
What is one?
This is the default value of an int variable in class if it is not initialized.
What is zero?
The logical operator that returns true only if both conditions are true.
What is &&?
This keyword refers to the current object inside a method.
What is this?
This is the correct syntax to declare an integer array of 5 elements.
What is
int[] arr = new int[5];
An interface can contain these two things
What are abstract method declarations and constants?
The type of error that prevents your code from compiling.
This control structure skips the current loop iteration and continues with the next one.
What is continue?
Fields in a class are typically marked with this access modifier for encapsulation.
What is private?
This method adds an element to the end of an ArrayList.
What is .add()?
This keyword allows a subclass to call the superclass constructor.
What is super?
This is the name of the method where Java program execution starts.
What is main?
This nested structure allows checking multiple conditions in a clean, readable format.
What is an if-else, if-else ladder?
This concept allows methods with the same name but different parameters.
What is method overloading?
This loop type is ideal for iterating through each element in a collection without changing it.
What is an enhanced for loop?
The ability of different object types to be accessed through the same interface is called this.
What is polymorphism?
This operator checks for equality between primitive values.
What is ==?
This type of loop continues until a specified condition becomes false, checking before each iteration.
What is a while (or do-while) loop?
This process allows a subclass to use the methods and fields of a superclass.
What is inheritance?
Removing an element from an ArrayList causes this to happen to the remaining elements.
What is shifting left (elements move one index lower)?
This term refers to using the same method name in a subclass with a new definition.
What is method overriding?