Scanner Class
Classes and Objects
Methods and Variables
OOP Principles
Constructos and Special Classes
100

This method you would use to read an integer input.

What is nextInt()?

100

This keyword, or reserved word, is used in Java to define a class.

What is "class"?

100

We declare an instance variable within a class, but outside any of these, procedures that execute a block of code when they are called.

What is any methods?

100

These are the four main principles of OOP.

What is encapsulation, Abstraction, Polymorphism, Inheritance?

100

This is a special method used to initialize objects.


What is a constructor?

200

We import the Scanner class from the Java library with this statement (line of code).

What is import java.util.Scanner;?

200

This is how you create an object of a class Car.

What is Car myCar = new Car();?

200

The void keyword means this in a method declaration, which is why more often than not, we use void methods for displaying output when called.

What is the method does not return a value?

200

This is the bundling of data and the methods that operate on that data.

What is Encapsulation?

200

How is an abstract class different from a regular class?

What is it cannot be instantiated and may contain abstract methods?

300

This method you use to read a whole line as a String?

What is nextLine()?

300

An object's state determined by these, also called attributes.

What is its instance variables?

300

The variables you pass into a method are called this, which they serve as place holders for when we call the methods with actual values.

What are parameters?

300

This is the hiding the complex reality while exposing only essential features? 


What is Abstraction?

300

This is a blueprint for a class with abstract methods, but no implementation.

What is an interface in Java?

400

This is how you create a Scanner object to read from keyboard input.

What is Scanner scanner = new Scanner(System.in); ?

400

We access instance variables of an object by using this kind of notation, which is named after what it looks like on the keyboard.

What is Using the dot notation (e.g., objectName.variableName) ?

400

These are the values you pass in when calling a method. They take the place of the parameters in the method delcaration.

What are Arguments?

400

This is the ability of an object to take on multiple forms.


What is Polymorphism?

400

Can you instantiate an abstract class?

What is No?

500

This is how you close the Scanner object to prevent resource leak?

What is scanner.close(); ?

500

We call the blueprint that defines the characteristics and behaviors of an object this.

What is a class?

500

We can overload a method (create method with the same name of another method) by having different parameter data types, having a different order of parameters, or this way.

What is by changing the number of parameters?

500

This term is the acquiring the features and behaviors of a parent class.


What is inheritance?

500

This type of a constructor that takes arguments to initialize object properties.


What is a parameterized constructor?