Import Statement

This statement imports classes included in the Java API, you can either import a class explicitly or use a Wildcard import statement- by using '*'- to import an entire package of related classes.

Instance Field

A variable that is bound to an object.

Instance Method

A method that requires an instance of the class to be created to be used.


A method that is automatically called when an object is created. The default no-argument constructor is called unless you overload a constructor by adding arguments, and pass them in when creating the class.

If Statement

The if-else statement will execute one group of statements if the boolean expression of the if statement returns true, and another if the expression returns false.

If-Else-If Statement

The if-else-if tests a series of conditions testing each consecutive else-if for a boolean value of true.

If-Else Statement

An if statement can be followed by an optional else statement, which executes when the Boolean expression is false.