Inheritance
Classes + Interface
Recursion
Notation
Misc.
100

These are the things that are inherited by a subclass (list all).

What is all fields and methods from the superclass?

100

In this class, all methods must be complete and variables must be instantiable.

What is a concrete class?

100

This takes a large problem, and splits it into smaller tasks that are usually easier to solve.

What is recursion?

100

Asymptote-like behavior is used to look at the runtime as n goes to _____

What is infinity?

100

This command line prints things out.

What is echo <smth>?

200

This is the first thing the compiler calls when a constructor is not defined in the subclass

What is the no-argument constructor in the super class?

200

In an abstract class you cannot do this. If you do, it leads to a compilation error.

What is create an object?

200

A potential downside to using recursive solutions.

What is wastage of memory space OR what is less efficient runtime OR may be slower?

200

Programmers ASSUME this in order to put theoretical concepts on a scale (hint: this was the Assumption #1)

What is a perfect machine (has perfect conditions)?

200

This word is something you can add in addition to try-catch. Hint: from yday's review, it's after you catch

What is finally?

300

This word is typically used when a subclass redefines a certain method while still keeping same name.

What is @override?

300

If you want to use this, you must use the keyword "implements". It is typically named an adjective/adverb and is compared to a checklist.

What is an interface?

300

Even though recursive solutions are usually defined in a top-down manner, we normally go from a _____ ______ to more general.

What is a base case?

300

This is the typical runtime when finding the largest and smallest elements in a sorted or binary situation

What is O(logn)?

300

These three must be done if you would like to create your own exception: _____, _______, ______.

What are create a new class, define a constructor, and create an exception message?

400

This OOP principle allows a class to inherit properties and methods from another class.

What is inheritance?

400

A programmer would use this to reduce code written, increase encapsulation, and change components of code faster, especially when making a GUI.

What is a nested class?

400

This describes what that facilitates recursion by handling them as a form of iterations, managing function calls, and organizing execution order.

What is a stack?

400

This Big O notation has a very slow time complexity and is generally not accepted (think red from graph).

what is O(n!)?

400

This is used to read each line at a time from an input file.

What is Buffered Reader()?

500

This type of polymorphism in Java allows multiple methods in the same class to have the same name with different params which are resolved during compile time.

What is method overloading (aka compile-time polymorphism)

500

This can be used to override methods in the superclass. It also can access local variables and methods and methods of the enclosing class.

What is a nested anonymous class?

500

Recursion is especially used for handling this.

What are nested structures?

500

The big O runtime for this code:

public static int notSoMysteriousMystery(int[] array, int target) {
   int left = 0;
   int right = array.length - 1;
   while (left <= right){
      int mid= left + (right - left) / 2;
      if (array[mid] == target) {
         returnmid;
      }
      if (array[mid] < target) {
      left = mid + 1;
      }
      else{
         right = mid - 1;
      }
   }
   return -1;
}

What is O(log n)?

500

This is a place that you can look at if you need help defining exceptions, for example.

What is Java API (from Oracle)?

M
e
n
u