The Default Constructor
If you don't declare a constructor, it will be the same as declaring an "empty" constructor. All fields will be initialized to their default values.
class Muppet {
String name;
boolean talented;
Muppet() {
}
}
void main() {
Muppet gonzo = new Muppet();
// null
System.out.println(gonzo.name);
// false
System.out.println(gonzo.talented);
}