AJ Program Explaination
AJ Program Explaination
AJ Program Explaination
import java.lang.annotation.*;
import java.lang.re ect.*;
// De ne the annotation
@Retention(RetentionPolicy.RUNTIME)
@interface myAnno {
String str();
int val();
}
Working
Re ection :
Re ection is like a tool that lets us look at the code and its annotations while the
program is running.
Output :