AP CompSci Ch. 2 Voc
Terms in this set (40)
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 double quotations.
A general form of conversion in Java; used to round floating point numbers to the nearest integer or it can convert an int into a floating point number.
A conversion from one data type into another in which information could be lost. Converting from double to int is this.
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; the modulate symbol.
operator precedence hierarchy
The order in which operators are evaluated in an expression.
A data type that comes with a definition supplied by the programming language; typically focus on int, double and boolean
A value that cannot be changed. Used to make code more readable and to make changes easier. Defined in Java using the final modifier. Written in all caps.
A Java reserved word that is a modifier for classes, methods, and variables. This variable is a constant.
A Java reserved word that indicates no value is returned.
The method that appears within a class; invokes other methods. Where 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. System object, out is the dot operator, println() is the method.
A Java reserved word for a visibility modifier. A class or interface of this type can be used anywhere. This type of method or variable is inherited by all subclasses and is accessible anywhere.
A Java reserved word for a visibilty modifer. This type of 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. This type of method is also called a class method and can be referenced without an instantiation of the class. This type of variable is also called a class variable and is common to all instances of the class. Variables common to all objects.
A statement that sets the value or the variable on the left to the values 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. For example, \t means that a horizontal tab should be printed.
(1) A Java reserved word used to define a class.
(2) The blueprint of an object - the model that defines the variables and methods an object will contain when instantiated.
(1) The basic software part in an object-oriented program.
(2) An encapsulated collection of data variables and methods.
(3) An instance of a class.
A named group of declarations and programming statements that can be invoked (executed) when needed. It is part of a class; a behavior or function that alters an object's state.
object reference variable
A variable that holds a reference to an object, but not the object itself; stores the address where the object is stored in memory; the variable name for an object.
The idea of hiding details. If the right details are hidden at the right times, it can make programming simpler and better focused.
An approach the 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 the interface.
The ability to create a new class from an existing one. These types of variables and methods of the original (parent) class are available in the new (child) class if they were declared locally.
A technique for involving different methods at different times. All Java method invocations can be this way 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 objects acts like. Defined by methods.
A special method in a class that is invoked when an object is instantiated from the class. Used to initialize the object.
To create an object
A variable or method in an object or class
Calling a line of code that causes a method to be executed. It specifies any values that are passed to the method as parameters.
a value passed through a method
YOU MIGHT ALSO LIKE...
AP Computer Science
AP Computer Science Vocab (1)
CH1 and CH2 vocab
OTHER SETS BY THIS CREATOR
AP Psych Ch 16
AP Psych Ch 2
AP Psych Ch 1
THIS SET IS OFTEN IN FOLDERS WITH...
AP Computer Science Ch. 2
Ch.2 Java Software Solutions 3rd Edition
AP World anchor dates
CH. 2 VOCAB