assignment |
using the assignment operator ( = ) to initialize or change the value stored in a variable |
data type |
the format of the data that can be stored in a variable |
declaration |
giving a name and data type to a variable |
initialization |
giving a starting value to a variable using the assignment operator ( = ) |
literal |
a source code representation of a value, such as a number or text |
primitive type |
a basic data type that Java predefines |
reference type |
a data type that contains a pointer to the memory location of an object |
variable |
a container that stores a value in memory |
attribute |
a characteristic of an object |
behavior |
an action that an object can perform |
bug |
an error in the code |
class |
a programmer-defined blueprint from which objects are created |
constructor |
a block of code that has the same name as the class and tells the computer how to create a new object |
debugging |
finding and fixing problems in an algorithm or program |
instantiate |
to call the constructor to create an object |
object |
an instance of a class |
object-oriented programming |
an approach to creating and using models of physical or imagined objects |
package |
a collection of similar classes |
state |
the attributes of an object that are represented by its instance variables |
Procedural Abstraction |
allows a programmer to use a method by knowing what the method does even if they do not know how the method was written |
void method |
a method that performs an action but does not return a value |
argument |
a value passed to a method or constructor when the method or constructor is called |
dot operator |
used to call a method in a class |
method |
a named set of instructions to perform a task |
parameter |
a variable in the method or constructor signature that defines the type of value to receive when the method or constructor is called |
boolean |
a primitive data type that can be either true or false |
if statement |
a conditional statement that only executes when the condition is true |
condition |
determines whether or not to execute a block of code |
conditional statement |
a statement that only executes when a condition is true |
logic error |
an error that occurs when the code runs but does not do what was expected |
return |
to exit a method and go back to the point in the program that called it with the requested value or information |
super keyword |
a keyword used to refer to the superclass |
constructor signature |
the first line of the constructor which includes the public keyword, the constructor name, and the values to specify when an object is created |
inheritance |
an object-oriented programming principle where a subclass inherits the attributes and behaviors of a superclass |
subclass |
a class that extends a superclass and inherits its attributes and behaviors |
superclass |
a class that can be extended to create subclasses |