Originally posted by Arun Maalik: Hi frnd i would like to know that why there is only one pubiic class in a java file if i will make more than one public class in a java file offcourse it will not compile but why?
Arun kumar maalik
It's just for conventions. Think if you have declared a class as public that means that you want to acces it from anywhere else also, now if you declare that class in some other Publicclass.java file. How do you find that, keeping into this mind These conventions are derived.