Answer Posted / ranganathkini
A class can be marked by the "private" access specifier only
if its a nested member of another class.
Top level classes cannot be marked as "private". Hence you
can have private classes in a java file but they must be
nested inside another class.
| Is This Answer Correct ? | 208 Yes | 16 No |
Post New Answer View All Answers
Is empty set an element of empty set?
What are memory tables?
Which methods are used during serialization and deserialization process?
What is output buffer?
Is cout buffered?
What is difference between java and java ee?
How do you escape a string?
What is string and its types?
What is getkey () in java?
What is meant by binding in rmi?
Why do we declare a class static?
Explain about narrowing conversion in java?
Define inheritance?
What is an infinite loop?
What are the advantages of arraylist over arrays?