package com.scjp.chap1; /** * Notice - Eclipse problem - This does compile and run You can only have one * public CONCRETE class but you can have an interface, with or without the * keyword public */ public interface InterfaceClass { } class ImplementInterface implements InterfaceClass { public ImplementInterface() { System.out.println("Implement public interface!"); } } public class VeryAbstract { public static void main(String[] args) { System.out.println("test"); new ImplementInterface(); } }