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 are the two environment variables that must be set in order to run any java programs?

967


Is it possible to override the main method?

981


What is Hierarchy of exception?

1090


What is difference between fail-fast and fail-safe?

1240


Why do you canvas?

1044


How many functional interfaces does java 8 have?

1029


Can an interface extend a class?

994


What is java algorithm?

945


What is collection class in java? List down its methods and interfaces.

968


Write a program to solve producer consumer problem in java?

1012


Differentiate between vector and array list.

1067


Why main() method is public, static and void in java ?

1101


What do you understand by the term polymorphism?

1081


Which data type is class in java?

1017


Does java support multiple inheritances?

1022