[Nov-2021] Java EE and Web Services 1Z0-900 Exam Practice Dumps
2021 1Z0-900 Premium Files Test pdf - Free Dumps Collection
Oracle 1Z0-900 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
| Topic 8 |
|
| Topic 9 |
|
NEW QUESTION 61
Given the code fragment:
How long does this cookie persist?
- A. until server shutdown
- B. this request
- C. until browser shutdown
- D. until garbage collection in the servlet instance
Answer: C
NEW QUESTION 62
Java EE's support for WS-Security includes handling which two types of security credentials? (Choose two.)
- A. Two-factor authentication tokens
- B. SAML tokens
- C. X.509 certificates
- D. OAuth Bearer tokens
Answer: B,C
NEW QUESTION 63
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
https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae
NEW QUESTION 64
A shipment has not yet been created for a pick that you are running.
How is the due date calculated?
- A. earliest acceptable date from the order line
- B. request date from the order line
- C. system date
- D. promise date from the order line
- E. schedule ship date from the order line
Answer: E
NEW QUESTION 65
Which three statements are true for an expense destination transfers that does NOT require a receipt at destination inventory organization?
- A. The destination inventory is not incremented.
- B. The transfer order is considered received and delivered at the time of shipment.
- C. A receipt is required on interorganization expense destination transfer orders between the from and to organizations.
- D. There is no put away transaction in Inventory since the item is expensed.
- E. There is no cost associated to the transaction.
Answer: A,D,E
NEW QUESTION 66
Given the code fragment:
And
Which two steps, when performed independently, enable the index.xhtml page to print the following text: The Id is 12345? (Choose two.)
- A. Replace line 1 with: private @Inject Account acc;
- B. Replace line 2 with: @Inject public void setAcc(Account acc)
- C. Replace line 1 with: @Inject private Account acc;
- D. Replace line 3 with: public@Inject Account getAcc()
- E. Replace line 3 with: @Inject public Account getAcc()
- F. Replace line 2 with: public void setAcc(@Inject Account acc)
Answer: D,F
NEW QUESTION 67
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}"converter="java.util.Date"/> - B. Insert <f:convertDateTime"/> at Line 1
- C. Replace Line 1 with:<h:inputText
id="createDate"value="#{widgetEditor.widget.createdDate}"><f:convertDateTime pattern="dd-mm-yyyy"/></h:inputText> - D. Enclose the code fragment within the <f:view/> tag
Answer: C
NEW QUESTION 68
You need to develop a chat application, which allows the display of emoticons and images together with text messages.
How should you configure a WebSocket endpoints to receive both text and binary messages?
- A. You can achieve this only by creating separate WebSocket endpoints for each message type.
- B. Create two @onMessagemethods, each with appropriate decoder attribute in the same endpoint.
- C. Define the @onMessagemethods in your endpoint with Objectas parameter and check the actual type in your code.
- D. Create two @onMessagemethods in the same endpoint with appropriate parameter types.
Answer: B
Explanation:
Explanation/Reference: https://abhirockzz.gitbooks.io/java-websocket-api-handbook/content/Receiving%20Messages.html
NEW QUESTION 69
Which two approaches would result in the current date being added to the output of a JSP? (Choose two.)
- A. <%= out.printIn(new java.util.Date()) %>
- B. <% out.printIn(new java.util.Date()); %>
- C. <% System.out.printIn(new java.util.Date()); %>
- D. <%= new java.util.Date() %>
Answer: A,D
Explanation:
Explanation/Reference:
Reference: http://www.ntu.edu.sg/home/ehchua/programming/java/javaserverpages.html
NEW QUESTION 70
Given:
What will be the response to a HEAD request?
- A. No method will be invoked and no error will be returned.
- B. The findAll() method will be called and no employees will be returned.
- C. No method will be invoked and a 404 error will be returned.
- D. The findAll() method will be called and the employee list will be returned.
Answer: A
NEW QUESTION 71
Given:
What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?
- A. @Stateless
- B. @Stateful @PassivationCapable
- C. @Stateful
- D. @Stateless @PassivationCapable
Answer: C
Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln
NEW QUESTION 72
Your customer has two warehouses (Inventory organizations) located in two different regions. They have a consigned agreement in place with the supplier. Your customer requests that whenever consumption advice is created, it should be created separately for each inventory organization.
What setup is required to achieve this requirement?
- A. Set Consumption Advice Summary in Consignment Agreement to "All Organizations".
- B. Set Consumption Advice Summary in Consignment Agreement to "All Organizations with items".
- C. Set Consumption Advice Summary in Consignment Agreement to "Organization'.
- D. This cannot be achieved because only one common consumption advice is created regardless of other parameters.
Answer: C
NEW QUESTION 73
Which code snippet prints the exception error message as part of the page output?
- A. <%= exception.message %>
- B. <% exception.getMessage(); %>
- C. <c:out value="${requestScope['javax.servlet.error.exception']}"/>
- D. <% System.out.println(e.getMessage()) %>
Answer: D
Explanation:
Explanation
Reference https://www.geeksforgeeks.org/3-different-ways-print-exception-messages-java/
NEW QUESTION 74
Your organization is planning for a periodic counting of individual items automatically throughout the course of the year. As part of this activity, the user has loaded items to the cycle count but some of the items are not being considered when count schedules and count sequences are not generated.
Identify two reasons that explain why the items are not being considered.
- A. The ABC assignment group is not defined.
- B. The Cycle Count Enabled flag is not selected for the inventory organization.
- C. The approval controls are not set up.
- D. The Include in Schedule option is not selected to include the item for auto-scheduling.
- E. The Cycle Count Enabled flag is not selected for the item.
Answer: C,E
NEW QUESTION 75
Given:
What will be the response to a HEADrequest?
- A. The findAll()method will be called and no employees will be returned.
- B. No method will be invoked and no error will be returned.
- C. The findAll()method will be called and the employee list will be returned.
- D. No method will be invoked and a 404 error will be returned.
Answer: B
NEW QUESTION 76
Given the code fragments:
Which action completes this composite primary key implementation?
- A. Add @IdClass(ContactId.class)annotation at line 2.
- B. Add @Embeddableannotation at line 1 and replace both @Idannotations with @EmbeddedId annotations.
- C. Add @Embeddableannotation at line 1and @EmbeddedId(ContactId.class)at line 2.
- D. Add @IdClassannotation at line 1.
Answer: C
NEW QUESTION 77
Given a JSL document describing a batch job:
How do you initiate a batch job?
- A. Get the JobExecutionobject from BatchRuntimeand set its status to JobStatus.INITIATED.
- B. Get the JobExecutionobject from BatchRuntimeand call its start()method.
- C. Call BatchRunTime.initialize("ProductLoadJob");
- D. Get the JobOperatorobject from BatchRuntimeand call its start()method.
Answer: B
NEW QUESTION 78
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. None of the above. An exception would be thrown due to ambiguous bean references.
- C. GenericMessenger
- D. SmsHandler
Answer: C
NEW QUESTION 79
Given a JSL document describing a batch job:
How do you initiate a batch job?
- A. Get the JobExecution object from BatchRuntime and call its start() method.
- B. Get the JobOperator object from BatchRuntime and call its start() method.
- C. Call BatchRunTime.initialize("ProductLoadJob");
- D. Get the JobExecution object from BatchRuntime and set its status to JobStatus.INITIATED.
Answer: A
NEW QUESTION 80
......
Get ready to pass the 1Z0-900 Exam right now using our Java EE and Web Services Exam Package: https://www.passleader.top/Oracle/1Z0-900-exam-braindumps.html
A fully updated 2021 1Z0-900 Exam Dumps exam guide from training expert PassLeader: https://drive.google.com/open?id=1TYdTgGGSRQMyI3ClN0_5p0xh2_Yv2d37