This Java keyword is used to create a subclass from a superclass.
extends
A class that can be instanciated with a new operator.
What is a concrete class?
This keyword is used to handle an exception that could arise in a try block.
What is a catch?
A recursive function must have this condition to prevent it from calling itself indefinitely.
What is a base case?
This JavaFX class is the top-level container that holds all UI elements in a scene.
What is Stage?
When a subclass provides its own implementation of a method defined in its superclass, it is doing this.
What is overriding?
Unlike abstract classes, these types of references cannot hold state and all their methods are implicitly abstract.
What are interfaces?
This block is executed whether or not an exception is thrown, allowing resource cleanup.
What is finally?
Recursion is often used as an alternative to these repetitive constructs for tasks like traversing data structures.
What are loops?
What is a method reference? i.e. this:method
This is the top-most superclass from which all other classes ultimately derive.
What is Object?
These are the only type of variables allowed in an interface.
What are constants (public static final variables)?
This keyword, used in a method signature, indicates that the method may pass an exception up the call stack.
What is throws?
A well-known recursive example, this function can be defined as f(n) = n * f(n-1) with a base case f(0) = 1.
What is the factorial function?
This layout displays its contents horizontally in rows and wraps its content vertically
What is a FlowPane?
Despite being inherited, this access modifier prevents subclasses from using a parent variable or method.
What is private?
This concept allows objects of different classes related by inheritance to be treated as objects of a common superclass.
What is polymorphism?
When handling multiple types of exceptions, use this sequence of catch blocks to prevent unreachable code and proper error handling.
What is the ordering catch blocks from most specific (subclass) to most general (superclass).
Excessively deep or infinite recursion will eventually lead to this error.
What is a StackOverflowError?
This trait allows a property's value to be monitored and action taken as needed.
What is observability?
This type of inheritance is not supported directly in Java (but is in other programming languages) that constrains the number of classes a subclass may directly inherit from.
What is multiple inheritance (through classes)?
Java 8 introduced these methods in interfaces, providing a default implementation for all implementing classes, effectively making Abstract classes obsolete.
What are default methods?
A category of exceptions where the compiler does not verify proper exception handling.
What are Unchecked Exceptions, or exceptions derived from RuntimeException
When solving the Tower's of Hanoi problem to move n disks from its originating peg to the destination peg, you first must accomplish this step.
Move n-1 disks from the originating peg to the spare (auxiliary) peg.
In order to use a lambda expression, the action responder must be this type of special interface that only has 1 abstract method.
What is functional interface?