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 is jit and its use?

991


What is java and why do we need it? Explain

1141


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1032


How big is a 64 bit float?

1026


What are the advantages of encapsulation in java?

1012


Who is founder of java?

999


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

980


Does java arraylist maintain insertion order?

1002


Explain methods specific to list interface?

988


How do you sort in java?

990


What does it mean that a method or field is “static”?

976


Which variables are stored in stack?

902


What is math floor in java?

952


What is return in java?

974


Explain an intermediate language?

974