Leave a Reply 3

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


Leo Yu

Leo Yu

why answer is not B) DataHandler

schema:

Java generated by JAXB

@XmlRootElement
public Class MyType{

@xmlElement
@XmlAttachmentRef
public DataHandler getDoc()
}

coco

coco

MIME Type Java Type

image/gif java.awt.Image
image/jpeg java.awt.Image
text/plain java.lang.String
text/xml or application/xml javax.xml.transform.Source

example
(is mapped to byte[])

(is mapped to java.awt.Image)

C. is correct