Question: Fill in the blank with the value that allows the annotation to be accessible by the JVM in which it is executed? A. RetentionPolicy.CLASS B.

Fill in the blank with the value that allows the annotation to be accessible by the JVM in which it is executed?

import java.lang. annotation.*; @Retention ( public class Corn {}

A. RetentionPolicy.CLASS

B. RetentionPolicy.JRE

C. RetentionPolicy.RUNTIME

D. RetentionPolicy.SOURCE

E. RetentionPolicy.LIVE

F. None of the above.

import java.lang. annotation.*; @Retention ( public class Corn {}

Step by Step Solution

3.38 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct answer to fill in the blank for the Retention annotation in Java is C RetentionPolicyRUN... 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!