Why non nested classes in java are not having marked as
protected access specifier
Answer Posted / yayati pavan
When the non nested class declared as public or
default(public) the jvm can access the class and execute.
So non nested class must always public. other wise jvm can't
access the class.
| Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
How many ways can we create the string object?
What are the restrictions imposed by a Security Manager on Applets?.
Is there any difference between synchronized methods and synchronized statements?
What is a locale?
What exactly is methodology?
What do you understand by synchronization?
Is empty in java?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
How do you create a method in java?
What does the three dot emoji mean?
What is an off by one error in java?
How do you sort arraylist in descending order?
What are void pointers?
what is the purpose of using rmisecuritymanager in rmi?
Is set ordered?