8 Replies Latest reply: Mar 19, 2011 12:43 PM by 848744 RSS

    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