Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free Oracle Java EE 7 Application Developer 1Z0-900 Exam Questions

Page: 1 / 15 Total 142 questions

Want more questions? Get Premium Access.

Question 1

Which statement is true about the relationship between HTTP and WebSockets?

Correct Answer: D. A WebSocket connection uses HTTP protocol to exchange data with the browser.

Question 2

Given the following class definition with numbered lines:

How do you specify to use this mock CDI bean implementation instead of the regular implementation class?

Correct Answer: B. Start up the server with the optional --alternative command-line option, specifying any alternative class names in a comma-separated list.

Question 3

Which code snippet prints the exception error message as part of the page output?

Correct Answer: D. <% System.out.println(e.getMessage()) %>

Question 4

Which type allows you to share servlet attributes across your entire web application?

Correct Answer: A. ServletContext

Question 5

You are working with JMS publish-subscribe operations.

What happens when a producer publishes a message to a topic for which a durable subscription exists but there are no subscribers available?

Correct Answer: C. The publisher successfully sends a message, which will be consumed later, once there is a subscriber, assuming the message hasn't timed out.

Question 6

Which statement is true about Java methods that are exposed as Web Service operations by using JAX-WS API?

Correct Answer: D. The @WebMethod annotation must exist.

Question 7

You are building the User Preferences page of an application. A user can change values, such as his or her name, password, address, company, and so on. These values are sent to a CDI backing bean via AJAX when the user tabs out of each field. However, the values must be retained in the CDI bean and stored in the database only when the user clicks the Save button.

Which two scopes will allow your CDI bean to retain its state while the user is interacting with the User Preferences page? (Choose two.)

Correct Answer: C. Session; D. Request

Question 8

Given a JSL document describing a batch job:

How do you initiate a batch job?

Correct Answer: A. Get the JobExecution object from BatchRuntime and call its start() method.

Question 9

Given the code fragment:

Which URL triggers the invocation of the getEmployee () method?

Correct Answer: A. <base url>/Employees/89724

Question 10

Which annotation allows a request to be executed with another Principal's identity?

Correct Answer: C. @RolesAllowed