title: Is it possible to instantiate abstract class using anonymous inner class and mechanism to access method within it
body: <p>There is no any way to create object using abstract class. But when using anonymous inner class it is possible to run the following code. And not only that <code>start()</code> method is not accessible, therefore What is the reason for running following program without giving any compile error and what is the mechanism to access <code>start()</code> method.</p>
  
  <pre><code>abstract class Vehicle{
          abstract void park();
      }   
  
      class Demo{
          public static void main(String args[]){
              Vehicle v1=new Vehicle(){
                  int speed;
                  void park(){
                      System.out.println("Parking for cars...");
                  }
                  void start(){
                      System.out.println("Start...");
                  }
              };
              v1.park();
          }
      }
  </code></pre>