interface Test { final static int a,b; int compute(int a,int b); } class Sum implements Test { public int compute() { System.out.println("Inside subclass"); public int compute(int x, int y) { System.out.println("Inside subclass"); return(x*y); } } class Interfacedemo { public static void main(String args[]) { System.out.println("Interface Example . . ."); Test t; Sum s; t = s; System.out.println("Interface Example . . ." + t.compute(10,20)); } }