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 / lakshman
any class that extends Taget
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What is the ==?
What is bifunction in java?
Explain the scope or life time of class variables or static variables?
What is the final keyword denotes?
How do you use nextline in java?
What is purpose of keyword void?
How do you clear a method in java?
Why is java multithreaded?
What environment variables are required to be set on a machine in order to run Java programs?
What are predicates in java 8?
What is formatted output in java?
Why is java called the platform independent programming language?
What is jee6?
What is complexity and its types?
What does snprintf return?