DEVFYI - Developer Resource - FYI

Can you call one constructor from another if a class has multiple constructors?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

157. Can you call one constructor from another if a class has multiple constructors?

Yes. Use this() syntax.

(Continued on next question...)

Other Interview Questions