Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.
Annotations and the Reflection API are pivotal features in Java that enhance the flexibility and dynamic capabilities of applications. Annotations serve as metadata, providing developers the ability to add information to code elements that can be utilized by compilers or through reflection at runtime. The Reflection API allows for runtime inspection and manipulation of classes, methods, and fields, making it ideal for various tasks like serialization and dynamic processing.
References
AJP ch7.pdfClass Notes
Memorization
What we have learnt
Final Test
Revision Tests
Term: Annotations
Definition: Metadata that provides information about the code but does not alter its execution.
Term: Reflection API
Definition: A set of APIs in Java that allows for introspection and manipulation of classes and objects at runtime.
Term: MetaAnnotations
Definition: Annotations that apply to other annotations, such as @Retention and @Target.
Term: Custom Annotations
Definition: User-defined annotations that can be created to meet specific application needs.
Term: Performance Overhead
Definition: The potential decrease in performance associated with using reflection, as it is generally slower than direct method calls.