This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
It is rules in java that when U compile java file compiler search for the name of class that public to make .class file and we know that there is only one class file after compiling the .java file that's why there is only public class in jawa. Now i think again a dought may be in your mind that ok then what if we want to make another class public so that in another package we can access. It will done by inheritence in the main source file.