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
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What is the purpose of nested class in java?
What is the purpose of javac exe?
what is aggregation in java?
What are reference variables in java?
What is the use of flag?
What are scriptlets?
What is an abstract class and what is it’s purpose?
Write a program to reverse a number in java?
What is the difference between abstract classes and interfaces?
Can we use return in constructor?
What is a data structure java?
Why do we override tostring method in java?
What is type inference in java8?
What do you understand by Header linked List?