Question: is class private in java?
Answer: Answer: We can not declare top level class as private. Java allows only public and default modifier for top level classes in java. Inner classes can be private.