RE: What is the better way of writing the Constructor with 2 parameters in the following code:class Te...
Test(int a int b) { this(a); }
This is becoz assigning the value a to instance variable has already been done in one place so why to repeat it again in this constructor also.So the better way is to call the first 1 argument constructor using this keyword.