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
Answer Posted / ram
any class in the test package
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What are decalarations?
What is the use of inner class?
What is a "pure virtual" member function?
What are the java ide's? Explain
What is a boolean used for?
What does exclamation mean in java?
what is inner class in java?
What is a null class?
What is a java predicate?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Where is stringbuffer stored?
What is the purpose of using javap?
Can we extend immutable class?
What are three types of loops in java?
Is a method a procedure?