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 do you mean by java annotations?

1075


Explain about static imports in java?

965


What is ellipsis in java?

1028


What is variable in java?

939


What are the types of sockets in java?

1078


Can you instantiate the math class?

1009


Is intellij better than eclipse?

1043


What is object cloning in Java?

1068


How do you use compareto?

901


Explain covariant method overriding in java.

1065


What is singleton math?

1071


What is the tradeoff between using an unordered array versus an ordered array?

1181


Can private class be extended java?

984


How many ways can we create the string object?

973


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

1007