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

1 Expert Approved Answer
Step: 1 Unlock

An annotation in Java is a type of syntactic metadata that can be added to Java source code It is us... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!