Which of the following statements about overriding a method are correct? (Choose three.) A. The return types
Question:
Which of the following statements about overriding a method are correct? (Choose three.)
A. The return types must be covariant.
B. The access modifier of the method in the child class must be the same or narrower than the method in the superclass.
C. The return types must be the same.
D. A checked exception thrown by the method in the parent class must be thrown by the method in the child class.
E. A checked exception thrown by a method in the child class must be the same or narrower than the exception thrown by the method in the parent class.
F. The access modifier of the method in the child class must be the same or broader than the method in the superclass.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
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
Question Posted: