Is it possible to have multiple classes in one java file in Eclipse? Or should I have them in another file?
Is it just something imposed by Eclipse, or does the Java compiler have something against having just one file?
You can have only one public class for each file, according to the Java specification (this is not an Eclipse rule). You can have inner classes or static classes in the same file as the public class.
Eclipse Java . , . -.
Java ( Java), , , . , .
( ) . , Java, Eclipse. , ++ Eclipse ++.
. - .
Java: http://java.sun.com/docs/books/jls/third_edition/html/packages.html#26783
, "" .