Defining Getters - Reading Values of Attributes
1)What is encapsulation in Java?
  

2)Which access modifier provides the most restrictive access to a class member?
  

3)What is a getter method in Java?
  

4)Which of the following is not an advantage of encapsulation?
  

5)Which keyword is used to create a constant in Java?
  

6)Which of the following access modifiers allows access to a member within the same class, subclasses, and classes in the same package?
  

7)What happens when you declare a class as "final" in Java?
  

8)Which access modifier is used for a class member that can be accessed from any class in any package?
  

9)What is the primary benefit of encapsulating data with private variables?
  

10)Which of the following is NOT a part of encapsulation?