162-02 2026 | Study Guide,
Practice Questions,
Answers, Rationales &
Exam Review| Complete
Ethics Study Guide
Updated 2026 Questions and Answers
100% Verified Exam Prep and Comprehensive
Rationales
Included
, Constructor A special type of method that automatically executes when an object is created or
instantiated.
Mutator method A method that changes the value of an instance variable.
If a class has more than one constructor, what happens? The constructors have a different number of formal parameters.
What are the four modifiers in Java? Public, private, default, and protected.
What is the first principle of Object-Oriented programming Encapsulation.
where it combines the data with the operations on that
data?
Encapsulation The first principle of Object-Oriented programming, where it combines the data and
the operations on that data into a single unit.
True or False? False. If a member of a class is a method, it can directly access ALL MEMBERS of
If a member of a class is a method, it can directly access the class.
some members of the class without passing the data
member as a parameter to the method.
Package A collection of related classes.
Instance variables Non-static data members of a class.
Instance method Non-static method of a class.
Accessor method A method that accesses the value of an instance variable.
What are the two kinds of constructors? Default (without parameters), and one with parameters.