This method you would use to read an integer input.
What is nextInt()?
This keyword, or reserved word, is used in Java to define a class.
What is "class"?
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?
These are the four main principles of OOP.
What is encapsulation, Abstraction, Polymorphism, Inheritance?
This is a special method used to initialize objects.
What is a constructor?
We import the Scanner class from the Java library with this statement (line of code).
What is import java.util.Scanner;?
This is how you create an object of a class Car.
What is Car myCar = new Car();?
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?
This is the bundling of data and the methods that operate on that data.
What is Encapsulation?
How is an abstract class different from a regular class?
What is it cannot be instantiated and may contain abstract methods?
This method you use to read a whole line as a String?
What is nextLine()?
An object's state determined by these, also called attributes.
What is its instance variables?
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?
This is the hiding the complex reality while exposing only essential features?
What is Abstraction?
This is a blueprint for a class with abstract methods, but no implementation.
What is an interface in Java?
This is how you create a Scanner object to read from keyboard input.
What is Scanner scanner = new Scanner(System.in); ?
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) ?
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?
This is the ability of an object to take on multiple forms.
What is Polymorphism?
Can you instantiate an abstract class?
What is No?
This is how you close the Scanner object to prevent resource leak?
What is scanner.close(); ?
We call the blueprint that defines the characteristics and behaviors of an object this.
What is a class?
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?
This term is the acquiring the features and behaviors of a parent class.
What is inheritance?
This type of a constructor that takes arguments to initialize object properties.
What is a parameterized constructor?