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
What is java lang object?
What do you understand by classes in java?
What is the difference between throw and throws in java?
What is string data?
How is hashset defined in java?
How can we make sure main() is the last thread to finish in java program?
Can you explain the private protected field modifier?
What is integer size in java?
what are synchronized methods and synchronized statements? : Java thread
Can an unreferenced object be referenced again?
Explain about complier design(phases)
What is codebase?
What is an image buffer?
Will minecraft java be discontinued?
How do you remove all elements from an arraylist in java?