This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Please change your display name first, as Henry asks you for the fourth time already. Click on the "My Profile" link at the top of the page, then click on "View/Update Profile" and change your name in the field "Publicly Displayed Name" to a name that conforms to the policy.
About your question: If you have deprecated methods that are deprecated using the @Deprecated annotation, then you can identify them at runtime by using reflection. The @Deprecated annotation has runtime retention. Example:
NOTE: Unfortunately this does not work if the method is deprecated by using the old style Javadoc @deprecated tag. [ November 09, 2006: Message edited by: Jesper Young ]
It's a lot harder for previous versions of Java, in which javadoc @deprecated tags are used. You could write a doclet and run the Javadoc tool on the source code to find the deprecated methods. If you don't have the source code, then I believe it is not possible to detect if a method is deprecated at runtime.