Answer Posted / ravi kumar
private class PrivateClass //You cannot use private here
{
}
class TestClass //This is valid
{
}
}
This is because, in above example, if you declare PrivateClass as private then it's private to what? As Vijay said, it is of no use. So, intellisense intelligently doesn't show 'private' .
also another thing that private class can not be instantiate means u can not create object that class then what will be use of that class
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What does method mean?
What is a void method java?
What do you mean by pointer value and address?
Explain the importance of join() method in thread class?
What are 5 boolean operators?
What happens if we don’t define serial version uid?
Highest level event class of the event-delegation model?
What is double parsedouble in java?
What is the tradeoff between using an unordered array versus an ordered array?
Can private members of a base class are inheritable justify?
How many bits are in a sentence?
What is http client in java?
What is natural ordering in java?
What is parsing and its types?
When can you say a graph to be a tree?