In what ways are annotations similar to interfaces? (Choose two.) A. They can both declare methods with
Question:
In what ways are annotations similar to interfaces? (Choose two.)
A. They can both declare methods with bodies.
B. They can both declare constructors.
C. They can both declare constants.
D. They can both be extended with the extends keyword.
E. They can both be used in a class declaration.
F. They both are declared with the interface type.
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: