Chapter 2: Objects and Primitive Data
Order by
13 terms
Terms | Definitions |
|---|---|
Object | represents something with which we can interact in a program, that can be created multiple times using a class |
Inheritance | used by one class to drive another |
Abstractor | hides the right details at the right time so users don't have to think about its internal details in order to use it |
Escape Sequences | a series of characters that represent a special character beginning with a '\' (\b-backspace) |
Variable | name for a location in memory |
Assignment | changes the value of a variable (=) |
Constant | identifier similar to a variable except that it holds one value while program is active(final) |
Primitive data | 4 int: byte, short, int, long2 floating: float, double 1 char: char 1 boolean: boolean 3 AP subset: int, double, boolean |
Data Conversions | convert data from one type to another-Widening(safe) -Narrowing(lose info) -Casting(most powerful and dangerous (result=(double)) |
Instantiation | creating objects |
Wrapper Class | represents a particular primitive type as an object (Integer ageObj= new Integer(201); |
Package | where classes of Java are organized (java.lang) |
Import declaration | use a class from a package ( java.util.Random) |
First Time Here?
Welcome to Quizlet, a fun, free place to study. Try these flashcards, find others to study, or make your own.