Robert

29%
Flag icon
Never put multiple top-level classes or interfaces in a single source file.
Robert
Why is this even possible? I thought it was a JLS violation to declare a top-level class with a name that doesn't match the file name? I thought I get a compiler _error_ if I try. Or is this my toolset going above and beyond what the compiler will allow?
Effective Java
Rate this book
Clear rating
Open Preview