Java tutorial
public class Main { public static void main(String[] unused) { try { String n = "java.lang.Deprecated"; Class c = Class.forName(n); System.out.println(c.isAnnotation()); } catch (Exception ex) { ex.printStackTrace(); } } }