Try-Catch-Finally
Sub and Super v1
Inheritance v2
@Override
100

This block surrounds the code being attempted and may throw an exception.

What is the Try Block?

100

What is another name for a Superclass?

A Parentclass or Baseclass.

100

This keyword is used to make one class inherit from another in Java.

What is extends?

100

Why can't you use @Override on a final method?

It is marked as final, and therefore cannot be modified.

200

This block catches exceptions and displays their information. 

What is the Catch Block?

200

Define a Superclass.

A class that is being inherited from.

200

What is the difference between a Class and a Subclass?

 A subclass is a class that derives from another class. It inherits all of it's behavior from the parent class.

200

Define @Override.

When the Subclass tries to implement a method which is already defined by the Superclass.

300

This block runs regardless of whether an exception occurs or not.

What is the Finally Block?

300

What is the Super command?

The Super command indicates the properties to be inherited from the base class.

300

Where should additional properties be added?

Any additional properties need to be added to the declaration along with their data types.

300

Why can't private methods be overridden?

They are bonded during compile time, and as such cannot even be overridden in a Subclass.

400

What happens if the Try or the Catch block run?

The finally block runs, regardless of what happens in the try and catch block.

400

Why does a Subclass rely on a Superclass?

Inheritance from the Superclass.

400

This term refers to additional properties added in the subclass beyond those inherited.

What are subclass-specific fields?

400

Why would a developer choose to use @Override in their code?

Developers can tailor the behavior of the method to suit the needs of the subclass without altering the behavior of the parent class.

500

This Java utility is used to parse strings into tokens, such as numbers or words.

What is the Scanner class?

500

Why are Subclasses considered to be more efficient?

They support the incremental modification of code by allowing the programmer to define a new class by inheriting the code of an existing class, while possibly modifying or adding instance variables and methods.

500

What are the four types of Java Inheritance? 

What is single, multilevel, hierarchical, and hybrid?

500

What is method hiding?

When you define a static method with the same signature as a static method in the base class.

M
e
n
u