Java: Classes and Objects Exam 2025
Questions and Answers
Objects have two properties. One is state. What is the other? - ANSWER✔✔-Behavior
The state of an object is stored in _____ _____ - ANSWER✔✔-Instance variables
The behavior of an object is represented by ______ ______ - ANSWER✔✔-Instance
methods
The job of a _____ is to initialize instance variables at the time an object is created. -
ANSWER✔✔-Constructor
Nested inside a class declaration are three kinds of declarations. What are they? -
ANSWER✔✔-Constructor declarations
Variable declarations
Method declarations
The words public and private are _____ _____ - ANSWER✔✔-Access modifiers
Questions and Answers
Objects have two properties. One is state. What is the other? - ANSWER✔✔-Behavior
The state of an object is stored in _____ _____ - ANSWER✔✔-Instance variables
The behavior of an object is represented by ______ ______ - ANSWER✔✔-Instance
methods
The job of a _____ is to initialize instance variables at the time an object is created. -
ANSWER✔✔-Constructor
Nested inside a class declaration are three kinds of declarations. What are they? -
ANSWER✔✔-Constructor declarations
Variable declarations
Method declarations
The words public and private are _____ _____ - ANSWER✔✔-Access modifiers