How can a class be accessed, If no access modifiers are
declared?

Answer Posted / banti

If a there is no access modifier specified to a class it
takes the access modifier as Default. This means the class
which has Default Access modifier can be accessed from
other classes defined in the same package.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of exceptions in java? Which are the differences between them?

751


Name four container classes.

737


What are the differences between checked exception and unchecked exception?

731


What are the differences between processes and threads?

735


What is this () in java?

748


What is the difference between yield() and sleep()?

747


What is scanner in java?

726


What is bom encoding?

761


How to implement an arraylist in java?

698


How do you insert a line break?

671


what is encapsulation in java? Explain

842


What are the basic control structures?

695


How does the garbage collector works in java?

755


What are the supported platforms by java programming language?

791


what is synchronization and why is it important? : Java thread

818