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 is singleton class in java?

990


Whats the difference between notify() and notifyall()?

967


What is formatted output in java?

893


What is the base class of all exception classes in java?

997


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

998


What is an example of a boolean?

999


Why hashcode is used in java?

915


What is function and method in java?

904


can I implement my own start() method? : Java thread

931


Does java isempty check for null?

942


Why do we need singleton?

925


What are class types in java?

1026


What is an accessor?

1598


What are the advantages of packages in java?

1422


What is the difference between preemptive scheduling and time slicing in java programming?

970