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

Can we define static methods inside interface?

926


How does multithreading take place on a computer with a single cpu?

949


What is diamond operator in java?

896


When throws keyword is used?

946


What is an abstract class and what is it’s purpose?

907


How will you initialize an Applet?

1078


What do you mean by JVM?

1010


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

1168


Write a code to create a trigger to call a stored procedure

908


What is Mutex (Mutual Exclusion Object) ?

1079


How listener identify that the event came from a particular object?

1950


What are the concepts of 'OOPS'?

1021


how are methods defined?

995


When does a class need a virtual destructor?

949


What is the main use of generics in java?

918