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
How large is a boolean?
How to check if a list is sorted in java?
Is oracle java 11 free?
What is externalizable interface?
What is <> used for in java?
What are the ways to instantiate the class class?
Is singleton set an interval?
What Is Query Throttling in java?
Where is stringbuffer stored?
What is variable and its types?
What class allows you to read objects directly from a stream?
What is the purpose of using java.lang.class class?
What is the difference between choice and list?
How do you escape json?
Tell me are there implementations for sorting and searching in the java libarary?