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 / lakshman

any class that extends Taget

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the ==?

945


What is bifunction in java?

1272


Explain the scope or life time of class variables or static variables?

1040


What is the final keyword denotes?

1169


How do you use nextline in java?

1027


What is purpose of keyword void?

1090


How do you clear a method in java?

1048


Why is java multithreaded?

1046


What environment variables are required to be set on a machine in order to run Java programs?

1276


What are predicates in java 8?

1076


What is formatted output in java?

1023


Why is java called the platform independent programming language?

1062


What is jee6?

1188


What is complexity and its types?

1103


What does snprintf return?

1057