Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are decalarations?

1180


What is the use of inner class?

1098


What is a "pure virtual" member function?

1148


What are the java ide's? Explain

1130


What is a boolean used for?

1162


What does exclamation mean in java?

1183


what is inner class in java?

1214


What is a null class?

1030


What is a java predicate?

1018


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

1160


Where is stringbuffer stored?

1046


What is the purpose of using javap?

1156


Can we extend immutable class?

1039


What are three types of loops in java?

1197


Is a method a procedure?

1103