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
Is java a super set of javascript?
What do you mean by hashing?
Which class contains a method: cloneable or object?
What is the difference between static method and instance method in Java?
How do you use substring in java?
Can I learn java without any programming experience?
Can I declare a class as private?
What is string intern in java?
How do you sort in ascending order in java?
What are multiple inheritances?
what is mena by object block any what is the use of that
What is a function in programming?
What is a method in coding?
Is 0 an even number?
Where are global variables stored?