I try to define two classes with public access modifier. But i got an error that the classes should be defined in respective java files.
my question is Why cant we have two public classes in one java class file?
i understood the error i just want to know , why cant we do it ? i mean the reason behind it
Thanks