super() in a constructor of a class without inheritance

Viewed 1989

The following code (shortened version of the class) I have seen in a Java Video-Tutorial.

public class Address {
    private String firstName;
    private String lastName;

    public Address() {
        super();
    }

    public Address(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    ...
}

The class which is shown there has no extend keyword. Nevertheless super() is used within the constructor without a parameter.

It calls the constructor of Object class? Am I right?

But why?

What is the reason for having this call of super()?

2 Answers
Related