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 do you find the absolute value?
Difference between arraylist and vector.
What is the purpose of the return statement?
What are predefined functions?
How do you initialize an arraylist in java?
Explain about serializable interface in java?
What programs use java?
What is meant by overloading?
Can inner class have constructor?
Why should we use singleton pattern instead of static class?
Explain about static imports in java?
What is static keyword in java?
Explain about the interpreter in java?
How to create a base64 decoder in java8?
What is java beans?