What all access modifiers are allowed for top class ?



What all access modifiers are allowed for top class ?..

Answer / Chandan Kumar Rawat

A top-level class in Java can have any of the following access modifiers: public (default access outside the package), protected, or private. The default access is only accessible within the same package.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Does collectionutils isempty check for null?

1 Answers  


What is size () in java?

1 Answers  


What class of exceptions are generated by the java run-time system?

1 Answers  


How does serialization work

3 Answers   Ordain Solutions,


What is the use of coding?

1 Answers  


What are variable arguments or varargs?

1 Answers  


Why is Java a platform independent language?

1 Answers  


what are the difference between Java and .Net?

5 Answers  


Can we pass null as argument in java?

1 Answers  


What is runtime polymorphism or dynamic method dispatch?

1 Answers  


What are scalar data types?

1 Answers  


What is java full form?

1 Answers  


Categories