Jesse Silverman wrote:
You cannot have more than one public interface in a .class file.
You can not have more than one class, interface or enum in a .class file, regardless of whether they are public, default, private static, etc. etc. etc. -- as each class or interface of any of those categories generates its own .class file.
You may not declare more than one public interface, class or enum in a .java source file is what you meant to say.
Preparing for these exams always makes me feel like I am defending myself in court because my court-appointed attorney showed up drunk and fell asleep...
I am probably just jealous that you caught an error I missed. Again, good catch.