Correct Answer: @Retention(RetentionPolicy.RUNTIME)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
The default constructor of an enum type is implicitly:
public @interface A { String value(); } How would you change the 'value' element declaration to give it an empty String as its default?
Which statement is TRUE for enums:
You have the following method, which throws an unchecked exception public boolean testArg(Integer n) throws IllegalArgumentException { if (n == null) throw new IllegalArgumentException(); /* ... */ } Is this throw specification correct?
Whichoperators is used to allocate memory for an object?
A java virtual machine is actually a ________.
________ is a data structure to store data in sequential order.
Declaring main as ________ allows the jvm to invoke main without creating an instance of the class.
Some programmers refer to a catch block as a ____ clause.
Local variables must be ________.