Question: Question 1(JAVA) It is common for certain classes to keep track of how many times certain events have occurred over the life of an object.
Question 1(JAVA)
It is common for certain classes to keep track of how many times certain events have occurred over the life of an object. This is done using
| A private instance variable within the class. |
| An array of objects. |
| A notification event to a helper class. |
| A local variable within a mutator method. |
Question 2
What mechanism is used by a class that is designed to collect and store a growing set of values?
| A local variable. |
| A string. |
| Auto-boxing. |
| An array list or array. |
Question 3
When an object is intended to set and manage properties, where should those properties be stored?
| An array as a local variable in a method. |
| Instance variables. |
| An off-site database. |
| The main method of the program. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
