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

Can you call a private data from an inner class?

Answer Posted / ejp

The question is completely meaningless. You can't 'call'
private data at all. You call _methods_.

You can _access_ private data members from anywhere in the
enclosing scope, which includes inner classes.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you escape in java?

1018


What will happen to the exception object after exception handling?

961


What is the primary benefit of encapsulation?

1033


What do you mean by scope of variable?

848


How to provide security in java

2222


What is a java developer salary?

934


Can we have a method name same as class name in java?

1009


How do you calculate square roots?

1111


What is the difference between throw and throws keywords?

1007


Does string isempty check for null?

977


How would you dynamically allocate memory to an array?

1010


Can long be null in java?

972


Can you make a constructor final in Java?

1088


What are the differences between the constructors and methods?

1069


What two classes are used to read data only?

1053