![]() ![]() For example, if we want to retain the information till the class file, we can define something like this, The Annotation that is used to achieve this is and it takes a possible values of SOURCE, CLASS and RUNTIME defined in RetentionPolicy Enumeration. Retain the Annotation Definition during the Run-time so that JVM can make use of it.Retain the Annotation in the Class file also.Retain the Annotation in the Source Code only. ![]() The three possible ways of telling this are, We have a mechanism through which we can say that to what extent the Annotations should be retained. Assume that we have some Annotations defined in the source code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |