Java Classes and Objects Exam 2025
Questions and Answers
getter - ANSWER✔✔-Another name for accessor
setter - ANSWER✔✔-Another name for mutator
accessor - ANSWER✔✔-Another name for getter
mutator - ANSWER✔✔-Another name for setter
field - ANSWER✔✔-A class member that holds data
new - ANSWER✔✔-Keyword that causes an object to be created in memory
object - ANSWER✔✔-An instance of a class
stale - ANSWER✔✔-A dependent or derived value that becomes outdated
constructor - ANSWER✔✔-Method that is called when an object is created
shadowing - ANSWER✔✔-When a local variable hides a field with the same name
default constructor - ANSWER✔✔-Java creates this if you don't provide one yourself
Questions and Answers
getter - ANSWER✔✔-Another name for accessor
setter - ANSWER✔✔-Another name for mutator
accessor - ANSWER✔✔-Another name for getter
mutator - ANSWER✔✔-Another name for setter
field - ANSWER✔✔-A class member that holds data
new - ANSWER✔✔-Keyword that causes an object to be created in memory
object - ANSWER✔✔-An instance of a class
stale - ANSWER✔✔-A dependent or derived value that becomes outdated
constructor - ANSWER✔✔-Method that is called when an object is created
shadowing - ANSWER✔✔-When a local variable hides a field with the same name
default constructor - ANSWER✔✔-Java creates this if you don't provide one yourself