Question: Assuming @Weather is a valid repeatable annotation that takes a String, with its associated containing type annotation @Forecast, which of the following can be applied
Assuming @Weather is a valid repeatable annotation that takes a String, with its associated containing type annotation @Forecast, which of the following can be applied to a type declaration? (Choose two.)
A. @Forecast({"Storm", "Cloudy"})
B. @Forecast({@Weather("Storm"), @Weather("Cloudy")})
C. @Weather("Storm") @Weather("Cloudy")
D. @Weather({@Forecast("Storm"), @Forecast("Cloudy")})
E. @Forecast("Storm") @Forecast("Cloudy")
F. @Weather({"Storm", "Cloudy"})
Step by Step Solution
3.37 Rating (163 Votes )
There are 3 Steps involved in it
An annotation in Java is a type of syntactic metadata that can be added to Java source code It is us... View full answer
Get step-by-step solutions from verified subject matter experts
