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.
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.
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
Annotations and interfaces in Java have several similarities but also significant differences Going ... View full answer
Get step-by-step solutions from verified subject matter experts
