How to create Marker Annotation using java

The following example describes, how to create marker annotation in java.
Marker annotations are special annotations, declared no members.
In the below example we will identify marker annotation using isAnnotationPresent()
SOURCE:MarkerAnnotationDemo .java
OUTPUT:
  
Is marker interface exists

SHARE

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment