How can a class be accessed, If no access modifiers are
declared?
Answer Posted / babu
If a there is no access modifier specified to a class then it
takes the access modifier as Default modifier.Default Access modifier scope is package scope.so this class scope also package scope to access the classes which is having in the same package.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is exception in java?
What is a byte array?
What is method overloading and method overriding?
How finally used under exception handling?
What are different access specifiers in java?
What is functional interface in java?
What are the procedures?
How to use arraylist in java netbeans?
What is the java idl system?
Explain the importance of finalize() method.
Why we used break and continue statement in java?
What is the tradeoff between using an unordered array versus an ordered array?
What is high level language in computer?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What are triggers in DB? Explain their types. How do they work?