When I write a class Widget.java
public class Widget {
int data;
String name;
}
will the compiler-generated constructo
As said in JLS
If a class contains no constructor declarations, then a default constructor that takes no parameters is automatically provided: