How can a class be accessed, If no access modifiers are
declared?
Answer Posted / babu
If a there is no access modifier specified to a class then it
takes the access modifier as Default modifier.Default Access modifier scope is package scope.so this class scope also package scope to access the classes which is having in the same package.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is diamond operator in java?
What is the difference between size and length in java?
How can an exception be thrown manually by a programmer?
What is the escape character in java?
What is struts in java?
Difference between serialization and deserialization in java?
What are keywords give examples?
What are the types of java?
How to sort list of list in java?
What are the five major types of reference sources?
How many bytes is a string in java?
What are the differences between graph and tree?
What is the difference between instanceof and isinstance?
Why generics are used in java?
Why are the objects immutable in java?