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

How dead lock situation occurs in java and how you can identify it?

950


When should the method invokelater() be used?

989


Explain the difference between serializable and externalizable in java?

1002


What's a method in programming?

1015


Explain the private field modifier?

1043


How can you set the applet size?

1011


which class is the wait() method defined in? : Java thread

910


Why singleton is not thread safe?

960


What is function declaration?

929


When throw keyword is used?

1019


How do you write methodology?

931


What are memory tables?

1063


How to change value in arraylist java?

1118


What do you meant by active and passive objects?

1032


What is class??

1180