Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Java EE and Web Services 1z0-900 Passing Score

Page: 5 / 5
Total 142 questions

Java EE 7 Application Developer Questions and Answers

Question 17

Which code snippet indicates that the page you are designing is capable of handling errors?

Options:

A.

<%@page errorPage=“errorHandler.jsp”%>

B.

<%= requestScope[‘javax.servlet.error’] !=null %>

C.

<%@page isErrorPage=“true”%>

D.

Question 18

How can a servlet indicate to the browser that cookie data should be sent over a secure connection?

Options:

A.

Call the getSecure(true) method on the cookie object.

B.

Encrypt the cookie data. The browser automatically sends encrypted data over a secure connection.

C.

Set the ENCRYPT header in the response.

D.

Configure SessionTrackingMode.SSL on the ServletContext object.

Question 19

Given a JSL document describing a batch job:

How do you initiate a batch job?

Options:

A.

Get the JobExecution object from BatchRuntime and call its start() method.

B.

Get the JobExecution object from BatchRuntime and set its status to JobStatus.INITIATED.

C.

Get the JobOperator object from BatchRuntime and call its start() method.

D.

Call BatchRunTime.initialize(“ProductLoadJob”);

Question 20

Your class requires multiple resources defined, as shown in the following:

Which annotation do you use to group multiple @Resource declarations together for class-based injection, replacing in the code above?

Options:

A.

@Resources

B.

@Resource

C.

@ResourceGroup

D.

@ResourceCollection

Page: 5 / 5
Total 142 questions