This primitive data type stores true or false values.
What is boolean?
A blueprint to create objects that may contain data and behaviours.
What is a class?
What String method separates a String into tokens using a delimiter?
What is split()?
This collection can grow and shrink during runtime.
What is an ArrayList?
This O(n) algorithm checks for a target one item at a time.
What is linear search?
The result printed by this statement:
System.out.print(7/2);
What is 3?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?
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?
Arrays use this property while ArrayLists use this method to determine size.
What are length and size()?
This algorithm requires the data to be sorted.
What is binary search?
The default value of an uninitialized instance variable of type String.
What is null?
Making fields private and controlling access through methods is known as this principle.
What is encapsulation?
The result printed by this code:
String s = "Java";
s.replace("J", "L");
System.out.println(s)What is Java?
Because ArrayLists store objects only, Java uses these classes to store primitive values like int.
What are wrapper classes?
The order of elements after the first pass of a Selection Sort:
8 3 6 1 5What is:
1 3 6 8 5?
This logical operator is evaluated first:
boolean result = true || false & false;What is &&?
Objects live here in memory, while local variables live elsewhere.
What is the heap?
In exception handling, catch blocks should be ordered from these types of exceptions to these types.
What is most specific to most general?
Which ArrayList method deletes an element at a given index?
What is remove()?
This basic sorting algorithm will perform better than the other on a collection of data that is already sorted.
What is Insertion Sort?
This printf format specifier displays a floating-point number rounded to exactly two decimal places.
What is %.2f?
A copy constructor usually performs this type of copy when duplicated object references must not be shared.
What is a deep copy?
This feature automatically closes file resources when execution leaves the block.
What is try-with-resources?
This type of copy is a result of the following code.
int[] b = a;What is a shallow copy?
This error occurs when recursion continues indefinitely and exhausts the call stack.
What is a StackOverflowError?