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 / dilip
any class
| Is This Answer Correct ? | 4 Yes | 9 No |
Post New Answer View All Answers
Why webdriver is an interface?
List some java keywords sun like c, c + + keywords?
What is a ?
When does an object becomes eligible for garbage collection in java?
Define inheritance?
What is Java Reflection API? Why it’s so important to have?
What are kinds of processors?
What does %d do in java?
What is serialversionuid?
If we don’t want some of the fields not to serialize how to do that?
Difference between linkedlist and arraylist.
'A class is a template for an object' explain this statement.
How many bits is a double?
What is preflight request?
Is there a way to increase the size of an array after its declaration?