Multiple choice technology programming languages

A Constructor must always invoke its super class constructors in its first statement

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A constructor's first statement must be either a call to super() or this(), but if you don't write either, the compiler automatically inserts super() as the first statement. So while a super constructor is always invoked, it doesn't have to be explicitly written by you.