Question: Given the following declarations, which annotations can fill in the blank that would allow the code to compile? (Choose three.) A. @Vacuum({}) B. @Vacuum({upright,new}) C.
Given the following declarations, which annotations can fill in the blank that would allow the code to compile? (Choose three.)
![import java.util.*; public @interface Vacuum { String[] value (); } class Appliance](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1707/5/5/6/99365c74081b99381707556993506.jpg)
A. @Vacuum({})
B. @Vacuum({"upright","new"})
C. @Vacuum(List.of("portable"))
D. @Vacuum
E. @Vacuum("handheld")
F. @Vacuum(default="shop")
import java.util.*; public @interface Vacuum { String[] value (); } class Appliance { } void clean() {}
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
The correct answers are B Vacuumuprightnew D Vacuum E Vacuumhandheld Explanation ... View full answer
Get step-by-step solutions from verified subject matter experts
