Question 11 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question 11 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question

Given the code fragment:

. JAXBContext je = JAXBContext.newlnstance( "com.cracle.foo" );
. Unmarshaller u = je.createUnmarshaller();

. InputStream in = new FilelnputStream("fooStuff.xml");
. Object o = wunmarshal (in );

gp Oye

Which method should be used on line 3 to enable default validation mechanism?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

https://docs.oracle.com/javaee/6/api/javax/xml/bind/Unmarshaller.html