Java Interlude 6

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

flashcard set

Earn XP

Description and Tags

Flashcards reviewing key concepts regarding mutable and immutable objects in Java.

Last updated 1:13 AM on 5/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

9 Terms

1
New cards

Mutable Objects

Objects that can have their state or data fields changed after they are created.

2
New cards

Accessor Methods

Public methods used to retrieve the values of private data fields.

3
New cards

Mutator Methods

Public methods that change the values of private data fields in a class.

4
New cards

Immutable Objects

Objects that, once created, cannot have their state or data fields changed.

5
New cards

Reference Variable

A variable that holds the memory address of an object rather than the object itself.

6
New cards

getFirst() Method

An accessor method that returns the first name from the Name class.

7
New cards

setFirst(firstName) Method

A mutator method that sets the first name in the Name class.

8
New cards

getImmutable() Method

Part of the ImmutableName class that retrieves the immutable object.

9
New cards

toString() Method

A method that provides a string representation of an object.