Built-in Java Annotations Annotation
- @Target: Represents a note can be used in those places
- @Retention: Represents a note somewhere still valid
- @Documented: Indicates whether our generation in the javadoc comment
- @Inherited: a subclass can inherit the parent class notes
Reflection Reflection
Three ways to get the Class class:
- Obtained by the object ==> new xxx;. Xxx () getClass ();
- == obtained by forname> Class.forName ();
- Obtained ==> xxx.class .class class name;