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 parsing in java?
What is final?
Why we used vector class?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
Are private methods final?
What are register variables what are the advantages?
How can you share data between two thread in Java?
Can we declare register variable as global?
How do you implement polymorphism in our day to day life?
What is size_t?
What is an interoperable application in java ?
What is meant by structural programming?
What is a void method?
What is incompatible types in java?
What are three types of loops in java?