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


Please Help Members By Posting Answers For Below Questions

What is nextline method in java?

786


What is the generic function?

723


How does varargs work in java?

832


What is the use of arrays tostring () in java?

728


Difference between Preemptive scheduling vs. Time slicing?

782


What are the procedures?

820


What is the covariant return type?

769


What does void * mean?

703


What is the abstract class?

765


How many characters is 2 bytes?

727


What is a string what operation can be performed out with the help of a string?

737


How can we create a synchronized collection from given collection?

835


Are floats faster than doubles?

772


What are variable names?

705


What happens if I remove static from main method?

751