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 / 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 an immutable class?

1140


Explain about abstract classes in java?

1032


What is join () in java?

964


What is flag in java?

992


What are new features introduced with java 8 ?

989


Why we used vector class?

1067


Is arraylist sorted in java?

1002


Why is whitespace important?

1079


what is encapsulation in java? Explain

1107


What are passing parameters?

1086


What is externalizable?

1061


Explain tree set and its features?

1050


What are the advantages of autoboxing?

1017


What is static data type in java?

1032


Explain polymorphism citing an example.

1040