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


Please Help Members By Posting Answers For Below Questions

What is parsing in java?

531


What is final?

609


Why we used vector class?

631


Describe the syntax of multiple inheritance? When do we use such an inheritance?

586


Are private methods final?

488






What are register variables what are the advantages?

450


How can you share data between two thread in Java?

526


Can we declare register variable as global?

512


How do you implement polymorphism in our day to day life?

2763


What is size_t?

507


What is an interoperable application in java ?

586


What is meant by structural programming?

555


What is a void method?

517


What is incompatible types in java?

539


What are three types of loops in java?

589