Click here to watch in Youtube :
https://www.youtube.com/watch?v=ynaNgScDxDI&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge
![]() |
Java Tutorial: Annotations in java [How to define a custom or user-defined annotation] |
@interface MyAnnotation
{
}
public class AnnotationsDemo
{
@MyAnnotation
public static void main(String args[])
{
System.out.println("Hi");
}
}
OutputHi
Click the below link to download the code:
No comments:
Post a Comment