File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
why more than one public class not allowed in a source file?
Joined: Jan 15, 2009
Jan 23, 2009 21:40:03
more than one public classes are not allowed?
There should be some reason and I hope somebody will explain me.
Thanks in advance.
Joined: Dec 17, 2003
Jan 23, 2009 21:52:51
I asked Mr. Google
Why only one public class in a Java file
and he was able to point me a fine
that explains that doing such was a design decision to make the compiler more efficient.
I agree. Here's the link:
subject: why more than one public class not allowed in a source file?
corrections in marcus green test1
Two classes defined in the same source file ??
Java 1.5 test Exercise 5-4 Sun Certified Programmer for Java 5
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014