SCJP Certification

Sun Certified Java Programmer Certification exam essentials

January 27th, 2010

What is the AnnotableElement interface?

Uncategorized, by Daisy Williams.

The interface AnnotatedElement represents an annotated element of the program currently running in this VM. This interface allows annotations to be read reflectively. The annotations returned by methods in this interface are immutable and serializable. It is permissible for the caller to modify the arrays returned by accessors for array-valued enum members; it will have no affect on the arrays returned to other callers.

If an annotation returned by a method in this interface contains a class-valued member referring to a class that is not accessible in this VM, attempting to read the class by calling the relevant class-returning method on the returned annotation will result in a TypeNotPresentException.

Share

Back Top

Responses to “What is the AnnotableElement interface?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*