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
How dead lock situation occurs in java and how you can identify it?
When should the method invokelater() be used?
Explain the difference between serializable and externalizable in java?
What's a method in programming?
Explain the private field modifier?
How can you set the applet size?
which class is the wait() method defined in? : Java thread
Why singleton is not thread safe?
What is function declaration?
When throw keyword is used?
How do you write methodology?
What are memory tables?
How to change value in arraylist java?
What do you meant by active and passive objects?
What is class??