What is the output of the following Java program no. 6?

  1. class Test
  2. {
  3.     int test_a, test_b;
  4.     Test(int a, int b)
  5.     {
  6.     test_a = a;
  7.     test_b = b;
  8.     }
  9.     public static void main (String args[])
  10.     {
  11.         Test test = new Test();
  12.         System.out.println(test.test_a+” “+test.test_b);
  13.     }
  14. }

There is a compiler error in the program because there is a call to the default constructor in the main method which is not present in the class. However, there is only one parameterized constructor in the class Test. Therefore, no default constructor is invoked by the constructor implicitly.