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 are facelets templates?
What is the use of http-tunneling in rmi?
What is variable length arguments in java?
What is the original name of java?
Can I declare class as static or private?
Explain aggregation in java?
What is variable explain?
What is native method in java?
How do you use equal in java?
Does constructor creates the object ?
How are the elements of a gridbaglayout organized?
What happens when main () method is declared as private?
How do you insert a line break?
What is string buffer?
What is the simpletimezone class in java programming?