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
What is supplier in java?
What is a package in java? List down various advantages of packages.
Explain the key functions of data binding?
Why charat is used in java?
Can constructor return value?
What is static and final keyword in java?
What is file in java?
What is an interoperable application in java ?
what is function overloading in java?
What are the data types supported by java?
What is the difference between a field variable and a local variable?
How can we create a thread in java?
Which is the best sorting technique in java?
Why is core java important?
What do you meant by active and passive objects?