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...

How to access a variable if it is declared as private?

Answer Posted / neo

You can access the private variable in to the other package
or other classes by inheritance . to inherite the super
classes all the resources comes in to sub classes private
also in this context.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does 0 mean in boolean?

977


What is the difference between the prefix and postfix forms of the ++ operator?

1021


What does system.gc() and runtime.gc() methods do?

1049


Can you override a final method?

1034


Is final static java?

1010


What are the advantages of exception handling?

1062


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

984


What is overriding in java?

1072


What is the function of log?

992


What is contract between hashcode and equal method?

1041


Will minecraft java be discontinued?

1165


How many java versions are there?

1053


Can you use this() and super() both in a constructor?

983


What is the main functionality of the remote reference layer?

1999


What are the 6 functions?

973