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 / lakshman

any class that extends Taget

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is protected in java?

978


What do you understand by looping in java? Explain the different types of loops.

1034


What is array size in java?

948


What is fundamental datatype?

974


Is set ordered in java?

966


Why is it called boolean?

984


What isan abstract class and when do you use it?

1577


What is the difference between a loader and a compiler?

1018


What is the static method?

1057


Which containers use a flowlayout as their default layout in java programming?

986


What does it mean that a class or member is final?

983


Why we used break and continue statement in java?

1114


Can singleton class be serialized?

937


Which are the two subclasses under exception class?

1066


What is difference between static class and singleton pattern?

1008