Free Oracle 1z0-900 Exam Questions (page: 4)

Java EE’s support for WS-Security includes handling which two types of security credentials? (Choose two.)

  1. X.509 certificates
  2. SAML tokens
  3. OAuth Bearer tokens
  4. Two-factor authentication tokens

Answer(s): A,B



Given the code fragment from a Facelet page:


On Line 1, you ae asked to insert a search box that displays the text “Search Here” via a placeholder. Assume searchMB is a valid Managed Bean.

Which two options enable you to create a search box with a placeholder attribute on Line 1? (Choose two.)

  1. <h:inputText value=“#(searchMB.query)”>
    <f:param name=“placeholder” value=“Search Here”/>
    </h:inputText>
  2. <h:inputText value=“#(searchMquery)” placeholder=“Search here”/>
  3. <input jsf:id=“search” placeholder=“Search here” jsf:value=“#
    (searchMB.query)”></input>
  4. <h:inputText pt:placeholder=“Search Here” value=“#(searchMB.query)”/>
  5. <input id=“search” jsf:placeholder=“Search Here” value=“$(searchMB.query)”></ input>

Answer(s): C,E



Given the code fragment:


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

  1. u.setProperty(String, Object)
  2. u.setProperty(Schema)
  3. u.setEventHandler(ValidationEventHandler)
  4. u.setAdapter(XmlAdapter)

Answer(s): D


Reference:

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



How do you specify a default error page in your web.xml file?

  1. <on-error>
    <location>/general-error.html<location>
    </on-error>
  2. <error-page>
    <error-code>*</error-code>
    <location>/general-error.html</location>
    </error-page>
  3. <on-error>
    <error-code>*</error-code>
    <location>/general-error.html</location>
    </on-error>
  4. <error-page>
    <location>/general-error.html</location>
    </error-page>

Answer(s): B


Reference:

http://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-applications






Post your Comments and Discuss Oracle 1z0-900 exam prep with other Community members:

1z0-900 Exam Discussions & Posts