If you have code that is repeated, you would typically put the code in one of these
What is a method?
System.out.println(2 % 3);
What is 2?
_____________ is the ability of an object to take on many forms.
What is polymorphism?
This is the more general class that forms the basis for inheritance
What is superclass ?
This keyword is used in Java to create a parent/child relationship between two classes
What is EXTENDS?
This type of variable belongs to the class object, and is not shared among other objects
What is a class or instance variable?
System.out.println(1 / 3);
What is 0?
This is the name used to call a parent class?
What is super?
more specialized class that inherits from the superclass ?
What is subclass ?
This is it called when two methods have the same name but different parameters
What is overloading?
This type of variable is shared among all objects of the same class type
What is a static variable?
System.out.println(2 + 3 * 5 - 1);
What is 16?
In Java how many parents can a class have?
What is One?
In Java, every class that does not specifically extend another class extends this
What is Object class?
When you create a method in your subclass, what replaces the method of a parent class
What is overriding?
A name associated with a memory location in the computer.
What is a variable?
What is the value of len after the following executes?
String s1 = "Hey, buddy!";
int len = s1.length();
What is 11?
This is a class whose object wraps or contains a primitive data types
What is wrapper class?
These can be accessed by methods of all classes
What is public?
This is the mechanism for extending existing classes by adding methods and fields
What is Inheritance?
This type should you use to represent the amount of money you have?
What is double?
true or false: A constructor can return a value
What is FALSE
Use this when storing an unknown quantity of objects
What is ArrayList?
Sets of classes can form complex ________
What are Herarchies?
If you have a class called Car and another class called Ferarri, how do you make Ferarri inherit public attributes/methods from Car?
What is public class Ferarri extends Car?