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

What is the size of an array?

1087


What happens to a static var that is defined within a method of a class?

1092


Can we declare array without size in java?

1088


Explain public static void main(string args[]).

1246


Can we clone singleton object in java?

1092


Which is a valid identifier?

1314


Is vector ordered in java?

1051


What is the difference between serial and throughput garbage collector?

1165


Why is stringbuffer faster than string?

969


When do we use hashset over treeset?

1111


What is rule of accessibility in java?

1090


What is try-with-resources in java?

1231


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1926


What the difference is between execute, execute Query, execute Update?

890


How do you convert bytes to character in java?

1055