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 java string pool?

539


What is the difference between an inner class and a sub-class?

503


Is vector synchronized in java?

547


Java.util.regex consists of which classes?

541


What is meant by data hiding/encapsulation?

569






How do you convert int to char in java?

571


What is floating data type?

537


What is memory leak and how does java handle it?

515


Can java object be locked down for exclusive use by a given thread?

582


What are access specifiers available in java?

575


What are thread local variables?

546


What is gui programming?

514


Can you inherit from an abstract class java?

523


How many return statement are allowed in a function?

453


When is an object subject to garbage collection?

575