MCQs > IT & Programming > Java > public @interface A { String value(); } How would you change the 'value' element declaration to give it an empty String as its default?

Java MCQs

public @interface A { String value(); } How would you change the "value" element declaration to give it an empty String as its default?

Answer

Correct Answer: String value() default "";

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it