Rounds the value of a double to the nearest whole number.
A class, usually at the top of a Class Hierarchy, that cannot be instantiated, because not all of its methods are defined
A method, written in an Abstract Class, that is not defined. The word abstract must come right before the method's return type. It is up to the subclass to fill in the definition for the abstract method.
A method that enables the user to obtain information about an object’s instance and static variables. Also referred to as getter methods
An instance method that allows the client to get the value of an instance variable on an object
Assigning to a variable is updating the variable's value
An object’s characteristics.
The actions that can be completed by an object or class.The behavior of an object is what the object is able to do. It is the actions that can be performed by the object.
boolean is a Java type that can either be true or false. It is primitive.
Breaks out of a while loop and executes statements that immediately follow while loop.
Calling a method actually gives the command, so the computer will run the code for that method. objectName.method()
Casting
Casting is turning something of one type into another type
An error in the actual Java code. The code will not compile into an executable program, because there are errors in the text of the code.
When someone else creates a Class (like String, or Randomizer), and you are using the functionality of that Class in your program, your program is a client of the class. You are using the class as a client.
Class hierarchy refers to the arrangement of classes and how they relate to each other
A class is a template, or a blueprint, from which Java objects are created. All Java programs start with a class.
char is a Java type that represents a single character (a single letter). It is a primitive
Defining a method means to teach the computer a new command and explain what it should do when receiving that command.
Declare a Variable
Declaring a variable is defining it for the first time.
Constructor
A constructor is a special method of a Class that constructs a new object (a new instance) of the Class and sets the initial values for the instance variables.
The process of adding two String values together. This creates a new String object. Primitives can be concatenated with String objects.
double
double is a Java type that represents a real number with decimal values. It is primitive.
The process of hiding the implementation details of a class from the user.
An exception is thrown by Java when a runtime error is encountered. The exception provides information about what kind of error occurred.
A for loop lets us repeat code a fixed number of times.
Unable to be changed or manipulated. String are immutable.
When a subclass extends a superclass, the subclass inherits all of the static methods, static variables, and public instance methods of the superclass. This is called inheritance.
A variable defined in a Class, for which each object of the class has its own copy
int is a Java type that represents an integer (a whole number)
A variable that is defined in a method or constructor. It only exists in the context of the method that it belongs to
An instance method is a method that defines the behavior of an object. It defines an action that the object can perform.
Instance is what you call a specific object constructed from a class. Instance and object generally refer to the same thing. An object is a specific instance of a class
Necessary keyword for instantiating a new class object.
A loop, most often set with while(true), that has a break statement in the loop body
Classes can have multiple methods with the same name, as long as the parameters to those methods are different. Doing this is called "overloading" a method. Methods can have multiple signatures. Java will use the correct signature based on the actual parameters used in a program.
Methods can have multiple signatures. Java will use the correct signature based on the actual parameters used in a program. Classes can have multiple methods with the same name, as long as the parameters to those methods are different. Doing this is called "overloading" a method.
Methods used to change or manipulate instance variable or object data. Also referred to as setter methods.
The use of object and class types in programming.
Programming model that focuses on objects and the data and actions associated with the objects.
An object is a variable of a data type that is user defined. Every object has a state and a behavior.
Private
Restricts access to data and methods to the declaring class.
Primitive types are the basic, simple data types that are inherent to Java (int, double, char, and boolean)
An object can take on different forms depending on its implementation. Java can call the correct method even when an object is disguised as a more generic reference type. Polymorphism is the capability of a method to do different things depending on which object it is acting upon.
Pieces of information you can give to functions when you define them. When the function is called the arguments are the data you pass into the function's parameters. Parameter is the variable in the declaration of the function. Argument is the actual value of this variable that gets passed to the function.
The value returned from a method.
A method's return type is the type of value returned from that method.
Keyword used in methods to return a value back to the initial program that called the method.
Allows access to data and methods from classes outside the declaring class.
An error that happens while the program is running. Even if the code is written with the proper syntax, there are things that can go wrong while the program is running.
Defines which part of the program a variable can be accessed from.
Sentinel
A constant that has the specific purpose of being the value that breaks out of a loop.
Setter method
An instance method that allows the client to set the value of an instance variable on an object.
Static method
A method called on the Class, rather than on a specific object of the Class.Static methods are the methods in Java that can be called without creating an object of class. Static methods are called using the dot operator along with the class name unless they are defined in the enclosing class.
Shadowing
If two variables within the same scope have the same name, the variable with the more specific scope will be called.
The data that is associated with an object or class