What is Annotation?
Annotation : provides information about the program that is annotated with and it is not part of the program itself.
These annotations can be run time or compile time annotations
Compile Time Annotations
Compile time annotations are checked by the compiler at compile time.
public interface test { 
 public void add(int a,int b);
}
class tester implements test{
 @Override
 public void add(int a, int b) {  
 }
 
}
Run Time Annotations
As the Compile time annotation,run time annotation checks for run time information about the program that is annotated with.
0 comments:
Post a Comment