Header Ads

  • Breaking Now

    If you use super() or this() in a constructor where should it appear in the constructor?

    It should always be the first statement in the constructor.

    1 comment:

    1. Also since super() and this() both need to be the first statement so both cannot appear in a constructor.

      ReplyDelete

    Post Top Ad

    Post Bottom Ad