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 "this" keyword in java? Explain

1106


Explain the differences between abstraction and encapsulation?

1063


Is list ordered in java?

984


What are parameters in a method?

1116


What is a finally block?

993


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1251


What are the problems faced by java programmers who don't use layout managers?

990


What is a wrapper method?

1113


How do you bind variables?

1114


What is passing value java?

1070


What is constructor chaining and how is it achieved in java?

1165


What do you understand by access specifiers in Java?

1021


How will you compute size of a structure?

1192


What is the difference between throw and throws in java?

1112


Why hashmap is used in java?

1106