Does super () have to be first in constructor?

Java requires that if you call this() or super() in a constructor, it must be the first statement .

Sizin İçin Seçtik  Can we use this () and super () in a method in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *