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

Can we have two methods in a class with the same name?

1009


State differences between C and Java?

1161


Give any two differences between C++ and java.

1103


What is meant by memory leak?

1003


What is a get method?

995


Can inner class have constructor?

1007


What is autoboxing and unboxing?

958


What is difference between calling start() and run() method of thread?

1067


what do you mean by marker interface in java?

940


I don’t want my class to be inherited by any other class. What should I do?

979


Convert Binary tree to linked list.

1026


Explain a situation where finally block will not be executed?

983


What is meant by null and void?

938


What is polymorphism and what are the types of it?

953


Can an interface implement another interface?

994