Online Java Compiler By
JavaTpoint.com
//import statements? import java.io.LineNumberInputStream; public class ClassisAnnotationPresentExample2 { public static void main(String... args) { Class
class1 = LineNumberInputStream.class; boolean bl = class1.isAnnotationPresent(Deprecated.class); System.out.println("Check isAnnotationPresent ::: " +bl); } }
Output