MCQOPTIONS
Saved Bookmarks
| 1. |
In below code, what can directly access and change the value of the variable name?package output; class Test { public String name = "Interview Mania"; } |
| A. | any class that extends Test |
| B. | any class in the output package |
| C. | only the Test class |
| D. | any class |
| E. | None of these |
| Answer» C. only the Test class | |