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

Pearson 1z0-900 New Attempt

Page: 3 / 5
Total 142 questions

Java EE 7 Application Developer Questions and Answers

Question 9

How can you configure, in a portable way, the number of threads used by a ManagedExecutorService?

Options:

A.

programmatically, using a ManagedExecutorService

B.

using the ManagedExecutors utility class to define the execution properties

C.

This cannot be done because this configuration is dependent on the Java EE Product Provider.

D.

configuring the thread pool info in the deployment descriptor

Question 10

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.)

Options:

A.

Dependent

B.

View

C.

Session

D.

Request

E.

Application

Question 11

Given the code fragments:

Which action completes this composite primary key implementation?

Options:

A.

Add @IdClass annotation at line 1.

B.

Add @Embeddable annotation at line 1 and replace both @Id annotations with @EmbeddedId annotations.

C.

Add @IdClass(ContactId.class) annotation at line 2.

D.

Add @Embeddable annotation at line 1 and @EmbeddedId(ContactId.class) at line 2.

Question 12

Your organization is using min-max planning to replenish stock and the planning parameters are set at item organization level with a default subinventory.

Item: A, Min Qty: 25, Max Qty: 150 and Current Level: 20

The item above is purchased from a supplier. Although there is subinventory on hand, the subinventory is below the minimum required level. This should trigger a Min-Max report entry, but the requisition is not generated. Why?

Options:

A.

Fixed lot multiplier is not set.

B.

No value has been set for the “Min-Max Replenishment Reorder Approval” profile.

C.

Min-Max planning can be performed at the Organization level.

D.

Rounding the Reorder Quantity is disabled.

E.

Item is not defined in Manage Item Subinventories.

Page: 3 / 5
Total 142 questions