Back to marketplace

Chapter 2

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

Object

Back (Answer)

Something with which we can interact with the program

#2
Front (Question)

Class

Back (Answer)

defines objects

#3
Front (Question)

System.out is an

Back (Answer)

object

#4
Front (Question)

print is different than println because

Back (Answer)

it does not advance to the next line

#5
Front (Question)

Objects are abstract because

Back (Answer)

we don’t have to think about it’s internal details

#6
Front (Question)

Encapsulation

Back (Answer)

Each object handles its own state

#7
Front (Question)

getter

Back (Answer)

used to ask an object the value of a variable

#8
Front (Question)

setter

Back (Answer)

allows you to ask an object to change the value

#9
Front (Question)

String is an object

Back (Answer)

yes

#10
Front (Question)

concatenation

Back (Answer)

when you use the + operator to connect a very long string

#11
Front (Question)

An escape sequence

Back (Answer)

begins with back slash, tell program to treat next letter specially

#12
Front (Question)

tab

Back (Answer)

\t

#13
Front (Question)

newline

Back (Answer)

\n

#14
Front (Question)

double quote

Back (Answer)

"

#15
Front (Question)

three steps to make a variable

Back (Answer)

instantiate: declare initialize: store use

#16
Front (Question)

assignment

Back (Answer)

stores a value into a variable

#17
Front (Question)

declaring multiple variable at once is

Back (Answer)

bad form

#18
Front (Question)

constant

Back (Answer)

final

#19
Front (Question)

type

Back (Answer)

a category or set of data values

#20
Front (Question)

3 primitive types

Back (Answer)

int double boolean

#21
Front (Question)

widening conversions

Back (Answer)

safe, do not lose information (int to double)

#22
Front (Question)

narrowing conversions

Back (Answer)

often lost information (double to in)

#23
Front (Question)

casting

Back (Answer)

we want a floating point result when dividing them, we cast a total result = (double) total / count;

#24
Front (Question)

pointer

Back (Answer)

a reference in the address, points to where the object is