ANSWERS RATED A+ 2025/2026
Which of the following best describes an object? - correct answer ✔✔ An instance of a class
Which of the following best describes an attribute? - correct answer ✔✔ Global variables inside
a class or object
What does the private access-modifier do? - correct answer ✔✔ Makes members accessible
only within the class or object
What does the default package-private access-modifier do? - correct answer ✔✔ Makes
members accessible everywhere from its current file and directory only
What is a class constructor? - correct answer ✔✔ A special method primarily used to assign
values to attributes when an object is declared
Which of the following best describes a package? - correct answer ✔✔ A grouping of Java
classes in a sub-directories
When an element is passed-by-reference, a ____________ is passed. - correct answer ✔✔
memory location