• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/14

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

14 Cards in this Set

  • Front
  • Back

Instance Variables Live:

On the Heap

Object Live:

On the Heap

Local Variables Live:

On the Stack

Integer Literal Types

decimal, octal, hexadecimal, binary

Numeric Literals with Underscores Rules

Cannot start or end with underscore


Cannot have underscore next to decimal

Numeric Integer Literal Prefixes

Decimal: None


Binary: 0b or 0B


Octal: 0


Hexadecimal: 0x or 0X

Floating Point Literal Rules

float must end in f


double can end in d or not (default)

Boolean Literal Rules

Must be true or false, cannot be number, or anything else

Character Literal Rules

Single character embraced in single quotes


Or, Unicode value, preceded by \u

Non-Primitive Literals

String


Array

Cast

Change type of variable or expression

Primitive Assignment to Another Primitive Variable

Only the literal is copied, no reference to first variable, basically an


Identical copy

Wrapper Object

Object that stores a literal. Denoted by capital letter, like Integer(6) or Double(3.4)

Reference Assignment to Another Reference Variable

The "pointer" (reference to location on the heap) is copied, so the new variable points at the same object