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 the difference between a threads start() and run() methods? : Java thread

1063


Which keyword specify that a variable is effectively final ?

1048


Can we have 2 main methods in java class?

1068


How do you compare characters in java?

1049


what r advatages of websphere? & how to deploy?

2259


How to handle a web browser resize operation?

1133


What do you understand by synchronization?

1096


What is the difference between class & object?

1061


Is array primitive data type in java?

1051


Difference between process and thread?

1089


What modifiers may be used with an inner class that is a member of an outer class in java programming?

1172


What if constructor is protected in java?

1197


Is array dynamic in java?

991


What are the differences between path and classpath variables?

1101


What types of index data structures can you have in java?

1318