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 difference between variable declaration and variable initialization?

1031


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

1169


What is another word for methodology?

1017


How do you sing an Applet ?

2460


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

1105


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

1010


Does constructor be static?

1039


Can we override the static methods?

1033


What is set in java?

1048


What is off heap memory?

1006


Why do you canvas?

1044


How do you create immutable object in java?

1049


Explain 5 features introduced in jdk 1.7?

1029


What is package private scope in java?

948


Explain the difference between treeset and treemap in java?

972