If the user does not set value externally, it shows default values.
SOURCE:
ShowDefaultAnnotationTest.java OUTPUT:
Name :becbe
Description :A java resource website
You can also read
- Introduction to Java Annotations
- How to write custom annotation
- Writing custom Annotation with RentionPolicy
- How read annotation at runtime using Java Reflection
- How to list out annotations used in a class using Java Reflection
- How to create custom annotation with default values
- How to create Marker Annotation using java
0 comments :
Post a Comment