123456789101112131415



Question 1: Given:
1. package test;
2.
3. class Target {
4. public String name = "hello";
5. }

What can directly access and change the value of the variable name?

1. any class
2. only the Target class
3. any class in the test package
4. any class that extends Target