1Z0-900 Pre-Exam Practice Tests (Updated 142 Questions) [Q57-Q76]

Share

1Z0-900 Pre-Exam Practice Tests | (Updated 142 Questions)

Valid 1Z0-900 Exam Q&A PDF - One Year Free Update

NEW QUESTION 57
Given the code fragment:

How can you apply DateConverterto the birthdayfield?

  • A. by adding @Converter(autoApply=true)at line 1
  • B. by invoking the setConverter(DateConverter.class)method on the EntityManagerobject
  • C. by adding @Convert((DateConverter.class))at line 2
  • D. by adding @Convert(to=Date.class)at line 3

Answer: D

 

NEW QUESTION 58
Given:

What will be the response to a HEADrequest?

  • A. No method will be invoked and a 404 error will be returned.
  • B. The findAll()method will be called and the employee list will be returned.
  • C. The findAll()method will be called and no employees will be returned.
  • D. No method will be invoked and no error will be returned.

Answer: D

 

NEW QUESTION 59
Given the code fragment:

Which method should be used on line 3 to enable default validation mechanism?

  • A. u.setAdapter(XmlAdapter)
  • B. u.setProperty(Schema)
  • C. u.setProperty(String, Object)
  • D. u.setEventHandler(ValidationEventHandler)

Answer: A

Explanation:
Explanation
Reference https://docs.oracle.com/javaee/6/api/javax/xml/bind/Unmarshaller.html

 

NEW QUESTION 60
On your JSF page, you have a form in which you have a command button:

A user submits the form by clicking the button, and no errors occur while processing the request. Which statement is true?

  • A. The actNow()method controls the condition upon which the listenCarefully()method is allowed to be executed.
  • B. The listenCarefully()method is executed followed by the actNow()method.
  • C. The actNow()and ListenCarefully()methods are executed in parallel.
  • D. The actNowmethod is executed followed by the listenCarefully()method.

Answer: B

 

NEW QUESTION 61
Given:

What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?

  • A. @Stateless
  • B. @Stateful @PassivationCapable
  • C. @Stateless @PassivationCapable
  • D. @Stateful

Answer: D

Explanation:
Explanation/Reference: https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln

 

NEW QUESTION 62
You have been assigned to the Widget Editor portion of an application. It contains a Widget Editor Facelet page, the Widget class, and a simple WidgetEditor backing bean, which contains a reference to the current Widget instance.
Given the code fragment from the Widget class:

Given the code fragment from the Facelet page:

The page displays Conversion Error when a user fills out all the form fields and clicks the Save button.
Which step do you perform to fix this problem?

  • A. Replace Line 1 with:<h:inputText
    id="createDate"value="#{widgetEditor.widget.createdDate}"><f:convertDateTime pattern="dd-mm-yyyy"/></h:inputText>
  • B. Replace Line 1 with:<h: inputText
    id="createDate"value="#{widgetEditor.widget.createdDate}"converter="java.util.Date"/>
  • C. Enclose the code fragment within the <f:view/> tag
  • D. Insert <f:convertDateTime"/> at Line 1

Answer: A

 

NEW QUESTION 63
Given the code fragment:

How are transactions managed?

  • A. through a separate transaction per JMS Consumer
  • B. through a single shared transaction across the connection factory
  • C. through a single shared transaction in the JMS Context
  • D. through a single transaction for the entire JMS Topic

Answer: C

 

NEW QUESTION 64
Given an HttpServletRequestrequest and an EJB SessionContext ctx.
Which is a valid way to retrieve the Principal invoking either behavior?

  • A. request.getUserPrincipal()and ctx.getUserPrincipal()
  • B. request.getCallerPrincipal()and ctx.getCallerPrincipal()
  • C. request.getCallerPrincipal() and ctx.getUserPrincipal()
  • D. request.getUserPrincipal()and ctx.getCallerPrincipal()

Answer: B

 

NEW QUESTION 65
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?

  • A. The publisher sends the message. However, it is never consumed because there wasn't anything listening when it arrived, regardless of the message timeout length.
  • B. The publisher successfully sends a message, which will be consumed later, once there is a subscriber, assuming the message hasn't timed out.
  • C. The publisher waits for a subscriber, who then consumes it. However, the publisher will time out if no consumer arrives within the given timeout period.
  • D. The message publisher is immediately notified about the lack of subscribers and can decide for itself if, and when, to resend.

Answer: B

Explanation:
Explanation/Reference:
Reference: https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/ com.ibm.websphere.nd.multiplatform.doc/ae/tjn0012_.html

 

NEW QUESTION 66
Given the set of navigation rules:

Which two define a valid flow of view IDs through the application? (Choose two.)

  • A. dashboard > home > add-widget > list-widgets
  • B. home > goodbye > list-widgets
  • C. list-widgets > add-widget > home > dashboard > home
  • D. home > list-widgets > add-widget > goodbye

Answer: C,D

 

NEW QUESTION 67
Your customer wants to transfer material from facility A to facility
B. They are using the interorganization transfer to perform the transaction in the system. Their requirement is "whenever material is transferred from their facility A to facility B, facility B needs to pay 5% additional amount to the current item cost".
Which task must be set up to accomplish this requirement?

  • A. Manage Cost Plus Pricing
  • B. Manage Organization Relationships
  • C. Manage Transfer Pricing Rules
  • D. Manage Cost Organization Relationships
  • E. Manage Interorganization Markup

Answer: D

 

NEW QUESTION 68
While negotiating the terms of the consignment agreement, the buyer and the supplier mutually agree to set aging onset point as receipt and the aging period as five days. The terms also say that the consumption advice will be generated daily.
In which three scenarios will the goods be transferred from the supplier's ownership to buyer's ownership?

  • A. You received the goods today and you transfer the ownership using the "create transfer to owned transaction" task.
  • B. You received the goods and after four days you return the material to the supplier.
  • C. You received the goods today and for the next one week you do not plan any action on the same.
  • D. You received the goods today after six days you decide to transfer the ownership using the "create transfer to consigned transaction" task.
  • E. You received the goods today and after three days you transfer the ownership using the "create transfer to consigned transaction" task.
  • F. You received the goods today and you decided to issue the goods after days without transferring the ownership.

Answer: A,C,F

 

NEW QUESTION 69
Given the code sample:

And:

And:

And the next fragment from beans.xml:

And this injection point:
@Inject GenericMessenger messageHandler;
Which type would be injected at run time and referenced by the messageHandler variable?

  • A. MsgHandler
  • B. SmsHandler
  • C. None of the above. An exception would be thrown due to ambiguous bean references.
  • D. GenericMessenger

Answer: D

 

NEW QUESTION 70
Given the JPQL code fragment:
Select pub.title, pub.author, pub.pages FROM Publisher pub
Which two clauses do you add to this JPQL query to retrieve only those books with between 500 and 750 total pages? (Choose two.)

  • A. WHERE pub.pages <= 500 OR pub.pages >= 750
  • B. WHERE pub.pages <= 500 AND pub.pages >=750
  • C. WHERE pub.pages BETWEEN 500 AND 750
  • D. WHERE MIN(pages) >= 500 AND MAX(pages) <= 750

Answer: A,D

 

NEW QUESTION 71
Which three statements are true for an expense destination transfers that does NOT require a receipt at destination inventory organization?

  • A. The transfer order is considered received and delivered at the time of shipment.
  • B. There is no cost associated to the transaction.
  • C. There is no put away transaction in Inventory since the item is expensed.
  • D. The destination inventory is not incremented.
  • E. A receipt is required on interorganization expense destination transfer orders between the from and to organizations.

Answer: B,C,D

 

NEW QUESTION 72
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?

  • A. Reorder the implementation names in the beans.xml file such that the desired alternative is listed earlier.
  • B. Start up the server with the optional -alternative command-line option, specifying any alternative class names in a comma-separated list.
  • C. Delete the regular implementation class from the WAR.
  • D. Use the alternatives element in the beans.xml file and specify the class name in the class element within it.

Answer: B

 

NEW QUESTION 73
Given:

If an exception is thrown inside the ifblock, what effect will it have on the transaction?

  • A. The transaction will be suspended.
  • B. The transaction will be committed.
  • C. The transaction will be rolled back.

Answer: C

 

NEW QUESTION 74
What is true about Message-Driven Beans (MDBs)?

  • A. MDBs are invoked synchronously.
  • B. MDBs can participate in transactions.
  • C. MDBs retain data caches between client calls.
  • D. Each MDBs can process messages only from a single client.

Answer: B

Explanation:
Explanation
Reference https://docs.oracle.com/javaee/7/tutorial/ejb-intro003.htm

 

NEW QUESTION 75
You are in the process of analyzing the demand and supply schedules for the item based on high level reservations.

  • A. Transfer Order
  • B. Work Order
  • C. Requisition
  • D. Account Alias
  • E. Movement Request
  • F. On Hand

Answer: A

 

NEW QUESTION 76
......

Java EE 7 Application Developer Free Update Certification Sample Questions: https://www.practicetorrent.com/1Z0-900-practice-exam-torrent.html

Trend for Oracle 1Z0-900 pdf dumps before actual exam: https://drive.google.com/open?id=1XU67fLkbRWOVrraiGQLAM6sblO-wCHEG