Question: Fill in the blank with the correct annotation usage that allows the code to compile. A. @CelestialBody(name=Venus) B. @CelestialBody(name=Pluto, size=2, lightYears=5) C. @CelestialBody(lightYears=10) D. @CelestialBody(Jupiter)
Fill in the blank with the correct annotation usage that allows the code to compile.

A. @CelestialBody(name="Venus")
B. @CelestialBody(name="Pluto", size=2, lightYears=5)
C. @CelestialBody(lightYears=10)
D. @CelestialBody("Jupiter")
E. @CelestialBody(size=3)
F. None of the above.
public interface Celestial Body { String name(); double size() default 100; int lightYears = 2; } class Planet {}
Step by Step Solution
3.46 Rating (166 Votes )
There are 3 Steps involved in it
The provided image shows an annotation interface in Java named CelestialBody with three elements nam... View full answer
Get step-by-step solutions from verified subject matter experts
