Java
OOP
FileIO
Collections
Algorithms
100

This primitive data type stores true or false values.

What is boolean?


100

A blueprint to create objects that may contain data and behaviours.

What is a class? 

100

What String method separates a String into tokens using a delimiter?

What is split()?

100

This collection can grow and shrink during runtime.

What is an ArrayList?

100

This O(n) algorithm checks for a target one item at a time.

What is linear search?

200

The result printed by this statement: 

System.out.print(7/2);

What is 3?
200

A keyword needed to distinguish between an instance variable and a method parameter with the same name. Also refers to the current object instance.

What is this?

200

In order from lowest-level to highest-level: these are the three classes we've learned about that can write data to files.

What are FileWriter, BufferedWriter, and PrintWriter?

200

Arrays use this property while ArrayLists use this method to determine size.

What are length and size()?

200

This algorithm requires the data to be sorted.

What is binary search?

300

The default value of an uninitialized instance variable of type String.

What is null?

300

Making fields private and controlling access through methods is known as this principle.

What is encapsulation?

300

The result printed by this code:

String s = "Java";
s.replace("J", "L");
System.out.println(s)

What is Java?

300

Because ArrayLists store objects only, Java uses these classes to store primitive values like int.

What are wrapper classes?

300

The order of elements after the first pass of a Selection Sort: 

8 3 6 1 5

What is:

1 3 6 8 5?

400

This logical operator is evaluated first: 

boolean result = true || false & false;

What is &&?

400

Objects live here in memory, while local variables live elsewhere.

What is the heap?

400

In exception handling, catch blocks should be ordered from these types of exceptions to these types.

What is most specific to most general?

400

Which ArrayList method deletes an element at a given index?

What is remove()?

400

This basic sorting algorithm will perform better than the other on a collection of data that is already sorted. 

What is Insertion Sort?

500

This printf format specifier displays a floating-point number rounded to exactly two decimal places.

What is %.2f?

500

A copy constructor usually performs this type of copy when duplicated object references must not be shared.

What is a deep copy?

500

This feature automatically closes file resources when execution leaves the block.


What is try-with-resources?

500

This type of copy is a result of the following code. 

int[] b = a;

What is a shallow copy?

500

This error occurs when recursion continues indefinitely and exhausts the call stack.

What is a StackOverflowError?

M
e
n
u