8 Replies Latest reply on Mar 19, 2011 6:31 PM by 796440

    java

    759887
      interface A {
      public void printValue();
      }
      class Test{
      public static void main (String[] args){
      A a1 = new A() {
      public void printValue(){
      System.out.println("Ak");
      }
      };
      a1.printValue();
      }
      }

      what will be the output and why