Why Java doesn't provide default constructor, if class has parametrized constructor? Consider the following example
class A {
int a;
public A() {
}
public A(int val) {
a = val;
}
}
Here I explicitly need to add default constructor. Is there any reason, why Java doesn't provide default constructor for class having parametrized constructor?