title: Error: Constructor A in class A cannot be applied to given types
body: <pre><code>public class A{
  
      public A(String x){
          System.out.println("A constructor Called "+x);
      }
       public static void main(String []args){
          System.out.println("Hello World");
          A a= new B("b");
       }
  }
  
  class B extends A{
      public B(String x){
          System.out.println("B constructor Called "+x);
      }
  }
  </code></pre>
  
  <p>What is the problem in this very simple program, I am unable to locate it.
  Getting the following error on compile:</p>
  
  <pre><code>A.java:13: error: constructor A in class A cannot be applied to given types;                                                                                                    
      public B(String x){                                                                                                                                                         
                        ^                                                                                                                                                         
    required: String                                                                                                                                                              
    found: no arguments                                                                                                                                                           
    reason: actual and formal argument lists differ in length  
  </code></pre>