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.
Define what an annotation is in Java.
Think about what additional information can be provided about a method or class.
Give an example of a built-in annotation in Java.
Consider annotations that Java provides for overriding methods or marking something as outdated.
What does the @Override annotation indicate?
Think about a method that changes behavior from its parent class.
True or False: Meta-annotations describe the characteristics of other annotations.
Consider annotations that act as instructions to other annotations.
Define and implement a custom annotation that should only be applicable to methods, retaining the information at runtime. Include a value for storing a description.
Consider what behaviors you want this annotation to exhibit.
Write a reflection-based method that retrieves and displays the value of any custom annotations defined on the method.
Think about how reflection allows inspection at runtime.
5 more questions in this section. Enroll free to practise them all.
Enroll free