How can a class be accessed, If no access modifiers are
declared?
Answer Posted / ranganathkini
If a class is marked with no access modifiers then it is
given "package" access by default which means it can be
instantiated or subclasses by other classes in the same
package but it is inaccessible to classes outside the same
package.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the importance of finally over return statement?
Tell me a few examples of final classes defined in Java API?
Is char a method in java?
Is intellij better than eclipse?
What is the purpose of object oriented programming?
Can we have multiple classes in a single file?
What is the purpose of void?
What is the meaning of flag day?
What is ctrl m character?
Why java is called not pure object oriented language?
Can we overload final method in java?
Can two objects have same hashcode?
What is boolean flag in java?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
What is variable explain with example?