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

By default,the package and class are public.the result will
be 4 any class that extends Target.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is another word for methodology?

1000


Write code to implement bubble sort in java?

975


What is the properties class in java programming?

983


What is the difference between hashset and treeset in java?

1044


Why is stringbuffer thread safe?

1031


Explain an intermediate language?

938


For class CFoo { }; what default methods will the compiler generate for you>?

1056


How do you reverse a string in java?

1084


What is the console in java?

1131


What is the purpose of file class?

1001


How do you read and print a string in java?

938


What is purpose of keyword void?

1023


What is runtime locatable code?

1405


What is an 8 bit word?

1039


Can we have 2 main methods in java class?

1001