Monday, April 30, 2007

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.


Anonymous said...

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


Interview Questions On Java,Java EE Copyright © 2017. Reads: best tracker