返回卡包市场

Chapter 2

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 24内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (24 张)

#1
正面 (问题)

Object

背面 (解答)

Something with which we can interact with the program

#2
正面 (问题)

Class

背面 (解答)

defines objects

#3
正面 (问题)

System.out is an

背面 (解答)

object

#4
正面 (问题)

print is different than println because

背面 (解答)

it does not advance to the next line

#5
正面 (问题)

Objects are abstract because

背面 (解答)

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

#6
正面 (问题)

Encapsulation

背面 (解答)

Each object handles its own state

#7
正面 (问题)

getter

背面 (解答)

used to ask an object the value of a variable

#8
正面 (问题)

setter

背面 (解答)

allows you to ask an object to change the value

#9
正面 (问题)

String is an object

背面 (解答)

yes

#10
正面 (问题)

concatenation

背面 (解答)

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

#11
正面 (问题)

An escape sequence

背面 (解答)

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

#12
正面 (问题)

tab

背面 (解答)

\t

#13
正面 (问题)

newline

背面 (解答)

\n

#14
正面 (问题)

double quote

背面 (解答)

"

#15
正面 (问题)

three steps to make a variable

背面 (解答)

instantiate: declare initialize: store use

#16
正面 (问题)

assignment

背面 (解答)

stores a value into a variable

#17
正面 (问题)

declaring multiple variable at once is

背面 (解答)

bad form

#18
正面 (问题)

constant

背面 (解答)

final

#19
正面 (问题)

type

背面 (解答)

a category or set of data values

#20
正面 (问题)

3 primitive types

背面 (解答)

int double boolean

#21
正面 (问题)

widening conversions

背面 (解答)

safe, do not lose information (int to double)

#22
正面 (问题)

narrowing conversions

背面 (解答)

often lost information (double to in)

#23
正面 (问题)

casting

背面 (解答)

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

#24
正面 (问题)

pointer

背面 (解答)

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