interface A { public void method1(); } interface B { public void method1(); } public class Test implements A,B { public void method1() { } }
Standard input is empty
Main.java:7: error: class Test is public, should be declared in a file named Test.java public class Test implements A,B { ^ 1 error
Standard output is empty