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.
It is easier to fight for one’s principles than to live up to them.
-- Alfred Adler
I'm Nataraja Gootooru, programmer by profession and passionate about technologies. All
examples given here are as simple as possible to help beginners. The source code is compiled and tested in my dev environment.
If you come across any
mistakes or bugs, please email me to [email protected] or you can comment on the page.