}public class Interfacemethods implements Imethods {public int m1() // with out public we will get error { System.out.println("implementation m1");return 10; }public void m2() // with out public we will get error { System.out.println("implementation m2"); }}