Oracle 1z0-900 Exam Practice Questions (P. 2)
- Full Access (142 questions)
- One Year of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
You have been asked to implement internationalization in your JSF web application.
Where do you configure the supported locales?
Where do you configure the supported locales?
- Ain the <f:view> tag of the Facelet page
- Bin the web.xml file
- Cin the faces-config.xml file
- Din the src folder
Correct Answer:
C
C
send
light_mode
delete
Question #7
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?

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@Observes(notifyObserver=IF_EXISTS) on line 3 and line 6
- B@Observes(during=IN_PROGRESS) on line 1
- C@Observes(during=AFTER_COMPLETION) on line 1
- D@Observes(notifyObserver=IF_EXISTS) on line 4 and line 7 before method parameter declaration
Correct Answer:
A
Reference -
https://docs.oracle.com/javaee/7/tutorial/cdi-adv005.htm
A
Reference -
https://docs.oracle.com/javaee/7/tutorial/cdi-adv005.htm
send
light_mode
delete
Question #8
Which code snippet prints the exception error message as part of the page output?
- A<%= exception.message %>
- B<c:out value="${requestScope["˜javax.servlet.error.exception']}"/>
- C<% exception.getMessage(); %>
- D<% System.out.println(e.getMessage()) %>
Correct Answer:
D
Reference:
https://www.geeksforgeeks.org/3-different-ways-print-exception-messages-java/
D
Reference:
https://www.geeksforgeeks.org/3-different-ways-print-exception-messages-java/
send
light_mode
delete
Question #9
Java EE's support for WS-Security includes handling which two types of security credentials? (Choose two.)
- AX.509 certificates
- BSAML tokens
- COAuth Bearer tokens
- DTwo-factor authentication tokens
Correct Answer:
AB
AB
send
light_mode
delete
Question #10
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.)

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>
Correct Answer:
CE
CE
send
light_mode
delete
All Pages
