Random
loops/ arrays
Exception Handling
Inheritance
Oop
100

This is the entry point of a Java program.

public static void main(String[] args)

100

To find how many elements are in an array, you use this property.


length()

100

A method that might throw a checked exception must declare it using this keyword.

throws

100

This keyword is used in Java to create a subclass from a parent class.

extends

100

A class variable that is shared across all instances is called?

static variable

200

This keyword is used to create an object from a class.

new

200

This loop executes at least once even if the condition is false.

do - while loop

200

A method can manually generate an exception using this keyword.

throw

200

This principle ensures that a subclass can reuse code from a parent class while adding or modifying behavior.

inheritance

200

The concept of bundling data and methods together is called?

Encapsulation

300

This method returns the larger of two numbers.

Math.max()

300

This method can sort an array of integers in ascending order with just one line of code.

Arrays.sort(array)

300

This exception occurs when attempting to convert a string to a number but the format is invalid.

NumberFormatException

300

Members of a class that are private cannot be inherited directly by this class type.

subclass

300

When objects take many forms, it demonstrates which OOP concept?

Polymorphism

400

This occurs when multiple methods in the same class have the same name but different parameters (type, number, or order).

method overloading

400

This is how you create an empty ArrayList of Strings called names

ArrayList<String> names = new ArrayList<>();

400

This exception occurs when you try to access an array index that does not exist.

ArrayIndexOutOfBoundsException

400

In Java, when a constructor in a subclass calls super(), this happens first.

the parent class constructor executes first

400

When a class has multiple methods with the same name but different parameters, it is called?

Method overloading

500

This keyword is used inside a subclass method to explicitly call the parent class’s version of an overridden method.

super

500

For enhanced for-loops, you do not need this to access array elements.

an index variable

500

This exception occurs when a program encounters an input/output problem, such as reading from a file that cannot be accessed.

IOException

500

A subclass cannot inherit private members directly from its parent, but it can access them indirectly using this.

getter/setter methods

500

A special type of variable or method that belongs to the class itself, rather than any particular instance, and is shared across all objects of that class.

static