AP Computer Science Ch. 2
All vocabulary for chapter 2 in Java Software Solutions book.
Terms in this set (39)
A Java reserved word that represents a primitive floating point numeric type stored using 64 bits in IEEE 754 format.
A Java reserved word for a primitive integer type stored using 32 bits in two's complement format.
A Java reserved word for a logical primitive data type that can only take the values true or false.
A series of ordered characters surrounded by quotation marks.
A Java operation that uses a type or class name in parentheses to convert and return a value of one data type into another.
A conversion from one data type into another in which information could be lost. Converting from double to an int is a narrowing conversion.
A programming language in which each variable is always matched with a particular data type. Variables are not allowed to take on values or be used in operations besides their type.
Begins a comment that lasts only one line.
Used like the division operator except it returns the remainder of the division.
operator precedence hierarchy
A hierarchy that shows which operations are executed first.
Data that comes with a definition supplied by a programming language.
A value that cannot be changed. Used to make code more readable and to make changes easier. Defined in Java using the final modifier.
A Java reserved word that is a modifier for classes, methods, and variables. A final variable is a constant.
A Java reserved word that indicates no value is returned.
The method that Java begins execution at.
A method within an object within System that prints the String provided to the screen then moving to the next line.
A Java reserved word for a visibility modifier. A public class or interface can be used anywhere. A public method or variable is inherited by all subclasses and is accessible anywhere.
A Java reserved word for a visibility modifier. Private methods and variables are not inherited by subclasses and can only be accessed in the class in which they are declared.
A Java reserved word that describes methods and variables. A static method is also called a class method and can be referenced without an instance of the class. A static variable is also called a class variable and is common to all instances of the class.
A statement that sets the value or the variable on the left to the value given on the right. An equals sign separates the two variables.
An identifier in a program that represents a memory location in which a data value is stored.
In Java, characters beginning with the backslash character (\) used to indicate a special situation when printing values.
A Java reserved word used to define a class. Also, the blueprint or an object--the model that defines the variables and methods an object will contain when instantiated.
The basic software part in an object-oriented program. Also, an encapsulated collection or data variables and methods. Also, an instance of a class.
A named group or declarations and programming statements that can be invoked when needed. A method is a part of a class.
object reference variable
A variable that holds a pointer to the object in memory. It does not hold the object.
The idea or hiding details. If the right details are hidden at the right times, abstraction can make programming simpler and more focused.
An approach to software design and implementation that is centered around objects and classes.
The process of attaching the beginning of one character string to the end of another, resulting in one longer string.
The characteristic of an object that limits access to its variables and methods. All interaction with the object occurs through an interface.
The ability to create a new class from an existing one. Inherited variables and methods of the parent class are available to the child class as if they were declared locally.
A technique for involving different methods at different time. All Java method invocations can be polymorphic because they invoke the method of the object type, not the reference type.
What an object is like. Defined by variables.
The state of being of an object, defined by the values of its data.
What an object acts like. Defined by methods.
used for instantiating a class; appears much like a method but there is no return type and bears the same name as the class
to create an instance of an object
to call a method
all data and methods in a class
YOU MIGHT ALSO LIKE...
Academic Word Lists - AWL Sublists
AP Computer Science
Chapter 02 Java
THIS SET IS OFTEN IN FOLDERS WITH...
AP Computer Science Chapter 2
AP CompSci Ch. 2 Voc
Ch.2 Java Software Solutions 3rd Edition
AP Computer Science Chapter 2