Which of the following statements about calling this() in a constructor are true? (Choose three.) A. If
Question:
Which of the following statements about calling this() in a constructor are true? (Choose three.)
A. If arguments are provided to this(), then there must be a constructor in the class able to take those arguments.
B. If arguments are provided to this(), then there must be a constructor in the superclass able to take those arguments.
C. If the no-argument this() is called, then the class must explicitly implement the noargument constructor.
D. If super() and this() are both used in the same constructor, super() must appear on the line immediately after this().
E. If super() and this() are both used in the same constructor, this() must appear on the line immediately after super().
F. If this() is used, it must be the first line of the constructor.
Step by Step Answer:
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky