title: Creating the instance of abstract class or anonymous class
body: <p>In this code here is it creating the object of abstract class or anonymous class?
  Please tell me. I am little bit confused here.</p>
  
  <pre><code>public abstract class AbstractDemo {
  
      abstract void showMessage();
      abstract int add(int x,int y);
  
      public int mul(int x,int y){
          return x+y;
      }
  
  
      public static void main(String[] args) {
          AbstractDemo ad = new AbstractDemo() {
  
              @Override
              void showMessage() {
                  // TODO Auto-generated method stub
  
              }
  
              @Override
              int add(int x, int y) {
                  // TODO Auto-generated method stub
                  return 0;
              }
          };
  
          System.out.println(ad.mul(10, 12));
          System.out.println(ad.getClass());
      }
  
  }
  </code></pre>