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 is an annotation in Java?
Think about external information added to code.
What does the @Override annotation do?
Consider how this relates to inheritance.
What is the main purpose of annotations in Java?
Think about what 'metadata' means.
True or False: Annotations can directly alter the logic of code.
Consider how annotations are defined and what they do.
Create a custom annotation called @JsonSerializable that can be applied to classes, making them JSON serializable.
Think about what information you'd want to mark for serialization.
Explain how you would implement a processor that reads @JsonSerializable annotations and converts annotated classes to JSON.
Consider the steps of using reflection and what library you might use for JSON operations.
6 more questions in this section. Enroll free to practise them all.
Enroll free