AP Computer Science Chapter 2
AP Computer Science Chapter 2 vocabulary
Terms in this set (33)
Floating point data type, stored using 64 bits.
Integer data type, stored using 32 bits.
Used to represent two values, true and false. Can't be changed to any other data type.
The character string that appears inside double quotation marks ("Example.")
A Java operation that uses a type or class name in parenthesis to convert and return a value of one data type into another.
A conversion that may result in a loss of important information (Ex. converting a double to int)
A characteristic of Java that means programmers can't assign a value to a variable that is inconsistent with its declared type (Ex. int number = 3.5;)
Used in Java to place comments without altering input.
Used in Java to determine a remainder.
Operator Precedence Hierarchy
The order in which operators are evaluated in an expression.
Common values such as numbers and characters.
Represented by final int and then identified by all caps to represent a variable that can't be changed. (Ex. final int CONSTANT = 500)
Used to identify a constant within a program.
A Java reserved word that indicates no value is returned.
Used to identify that the main method is being used and is where processing begins.
Used when needed to print an entire line of text and then proceed automatically to the next line in the output.
This kind of class or interface is inherited by all subclasses and is accessible anywhere.
A Java reserved word for a visibility modifier. This kind of method and variable can only be accessed in the class which they're declared.
Reserved word that describes methods and variable. Can be referenced without an instance of the class.
Gives a value to a variable (Ex. number = 10)
Name for a location in memory used to hold a data value.
Used to represent and print special characters that are frequently used for other purposes in Java. (Ex. ")
Defines an object. Establishes the kind of data an object of that type will hold and defines the methods that represent the behavior of such objects or the operations that can be performed on them.
Basic part of Java program. It often represents a real object in a problem area, such as a bank account. Each has a state and a set of behaviors.
Group of programming statements that is given a name so that we can use them when we need it. When called, its statements are executed. Defines an object's behavior.
The given variable that is used to represent and identify an object within a program.
Identified by + and is used to add one string to another.
Each object protects and manages its own information.
The definition of one class can be based on another class that already exists (classes can be created from other classes).
The idea that we can refer to objects of different but related types in the same way. It's a big help with designing solutions to problems that deal with multiple objects.
Values that an object stores internally, representing its state. May be primitive data or other objects.
The state of being of an object. Basic characteristics that currently define the object.
Activities associated with the object.
YOU MIGHT ALSO LIKE...
AP Computer Science Chapter 3
AP Computer Science Vocab (1)
AP Computer Science
OTHER SETS BY THIS CREATOR
AP Computer Science Chapter 8
AP Computer Science Chapter 6 P2
AP Computer Science Chapter 6 P1
THIS SET IS OFTEN IN FOLDERS WITH...
AP Computer Science Chapters 1-6
AP Computer Science Operators, Variables and Classes
AP Computer Science Final Study Pack
AP Computer Science Ch. 2