Answer Posted / manoj purohit
•Only nested classes can be private. If a top-level class
were private, nothing could access it.
So, private nested classes are just like other private
members (methods and variables)--they can only be
accessed "within the body of the top level class that
encloses the declaration of the member or constructor"
Private classes are to be used only by their declaring
class (more or less) just like other private members
| Is This Answer Correct ? | 117 Yes | 2 No |
Post New Answer View All Answers
Explain about fail fast iterators in java?
Explain features of interfaces in java?
Does java map allow duplicates?
What is public static void main?
What is meant by oops concept in java?
What is the basic difference between string and stringbuffer object?
What is the use of protected in java?
What is a class object?
Can we serialize singleton class?
What does java ide mean?
How do you compare values in java?
What is the purpose of garbage collection in java, and when is it used?
What are the super most classes for all the streams?
What is the use of set in java?
who can i handle multiple client in RMI