Chapter 2: Objects and Primitive Data

About this set

Created by:

bcdcool  on October 5, 2011

Subjects:

computer science ap

Log in to favorite or report as inappropriate.

Discuss

Discussion has been disabled.

Chapter 2: Objects and Primitive Data

Object
represents something with which we can interact in a program, that can be created multiple times using a class
1/13
Preview our new flashcards mode!

Study:

Cards

Speller

Learn

Test

Scatter

Games:

Scatter

Space Race

Tools:

Export

Copy

Combine

Embed

Order by

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, long
2 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.

Set Champions

Scatter Champion

37.4 secs by bcdcool 

Completed “Learn” mode

bcdcool