Questions for the 1Z0-900 were updated on : Nov 14 ,2024
You need to develop a chat application, which allows the display of emoticons and images together
with text messages.
How should you configure a WebSocket endpoints to receive both text and binary messages?
D
Explanation:
Reference:
https://abhirockzz.gitbooks.io/java-websocket-api-handbook/content/Receiving%20Messages.html
Which two capabilities are provided by the Java Authentication and Authorization Services (JAAS)
API? (Choose two.)
B,C
Explanation:
Reference:
https://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html
Which interface should you implement if you want to be alerted to the lifecycle events surrounding
your task being executed by a ManagedExecutorService?
D
Explanation:
Reference:
https://github.com/javaee/concurrency-ee-
spec/blob/master/api/src/main/java/javax/enterprise/concurrent/ManagedExecutorService.java
Given the code fragment:
Which URL triggers the invocation of the getEmployee () method?
A
What is true about Message-Driven Beans (MDBs)?
A
Explanation:
Reference:
https://docs.oracle.com/javaee/7/tutorial/ejb-intro003.htm
You have been asked to implement internationalization in your JSF web application.
Where do you configure the supported locales?
A
Given the code fragment:
Which code can be added to register both of these methods to receive BankEvent notifications only if
an instance of BankActivityService is already instantiated in the current context?
A
Explanation:
Reference:
https://docs.oracle.com/javaee/7/tutorial/cdi-adv005.htm
Which code snippet prints the exception error message as part of the page output?
D
Explanation:
Reference:
https://www.geeksforgeeks.org/3-different-ways-print-exception-messages-java/
Java EEs support for WS-Security includes handling which two types of security credentials? (Choose
two.)
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.)
A.
<h:inputText
value=#(searchMB.query)><f:param
name=placeholder
value=Search
Here/></h:inputText>
B. <h:inputText value=#(searchMB.query) placeholder=Search here/>
C. <input jsf:id=search placeholder=Search here jsf:value=# (searchMB.query)></input>
D. <h:inputText pt:placeholder=Search Here value=#(searchMB.query)/>
E. <input id=search jsf:placeholder=Search Here value=$(searchMB.query)></input>
C,E
Given the code fragment:
Which method should be used on line 3 to enable default validation mechanism?
D
Explanation:
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?
B
Explanation:
Reference:
http://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-
applications
Given the code fragment:
And
Which two steps, when performed independently, enable the index.xhtml page to print the following
text: The Id is 12345? (Choose two.)
D,F
Given:
How often does the submitted task run?
A
Given:
What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?
D
Explanation:
Reference:
https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln