Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What symbol is used to denote annotations in Java?
Think of how you call your annotations in the code.
Name one built-in Java annotation for indicating method override.
Think about marking methods when you modify their inherited behavior.
What does the '@Override' annotation indicate?
Think about inheritance and method functionality.
What keyword do you use to declare a custom annotation?
Consider how you define new classes.
Create a custom annotation in Java that can be applied to fields and methods, specifying its retention policy.
What do you need to ensure your annotation is versatile?
Write a method that demonstrates the use of reflection to retrieve an annotation from a method.
Think about the steps you take to identify and retrieve annotations before executing any logic.
7 more questions in this section. Enroll free to practise them all.
Enroll free