Originally posted by amit taneja:
...pls explain the above statement in detail pls
The keyword "new" indicates the creation of an object, so it must be followed by a constructor call. Thus, you cannot follow "new" with a method call.
Within a constructor body, the first statement can be this(), which calls an overridden constructor for the same class (depending on the arguments provided); or the first statement can be super(), which calls a constructor of the immediate superclass (again depending on the arguments provided).