Which are true statements about interfaces and abstract classes? (Choose three.) A. Abstract classes offer support for
Question:
Which are true statements about interfaces and abstract classes? (Choose three.)
A. Abstract classes offer support for single inheritance, while interfaces offer support for multiple inheritance.
B. All methods in abstract classes are public, while interfaces can use various access modifiers for their methods and variables, including private in some cases.
C. Both abstract classes and interfaces can have abstract methods.
D. Both abstract classes and interfaces can have public constructors.
E. Interfaces can only extend other interfaces, while abstract classes can extend both abstract and concrete classes.
F. Unlike abstract classes, interfaces can be marked final.
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