[Jan 07, 2022] Test4Sure 1Z0-900 dumps & Java EE and Web Services sure practice dumps
Oracle 1Z0-900 Actual Questions and Braindumps
Oracle 1Z0-900 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
NEW QUESTION 50
A Persistence application locks entity xwith a LockModeType.PESSIMISTIC_READlock type. Which statement is true?
- A. This operation will force serialization among transactions attempting to read the entity data.
- B. LockModeType.PESSIMISTIC_READ is the synonym of LockModeType.READ
- C. If the application updates the entity later, and the changes are flushed to the database, the lock will be converted to an exclusive look.
- D. This operation will result in a TransactionRolledbackExceptionif the lock cannot be obtained.
Answer: A
Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/javaee/7/api/javax/persistence/LockModeType.html
NEW QUESTION 51
Given:
How often does the submitted task run?
- A. once
- B. based on a schedule
- C. need more details to determine
- D. as many times as you like
Answer: C
NEW QUESTION 52
A shipment has not yet been created for a pick that you are running.
How is the due date calculated?
- A. promise date from the order line
- B. earliest acceptable date from the order line
- C. system date
- D. request date from the order line
- E. schedule ship date from the order line
Answer: E
NEW QUESTION 53
Which two elements CANNOT be injected by using an @Inject annotation? (Choose two.)
- A. abstract methods
- B. instance fields declared final
- C. static fields
- D. concrete methods
Answer: A,B
NEW QUESTION 54
Given:
Which annotation do you use on line 1to ensure that clients immediately time out when attempting to concurrently invoke callMethod ()while another client is already accessing the bean?
- A. @AccessTimeout (-1)
- B. @AccessTimeout (null)
- C. @AccessTimeout (value = 1, unit = TimeUnit.SECONDS)
- D. @AccessTimeout (0)
Answer: D
Explanation:
Explanation/Reference:
Reference: http://tomee.apache.org/examples-trunk/access-timeout/
NEW QUESTION 55
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. None of the above. An exception would be thrown due to ambiguous bean references.
- B. GenericMessenger
- C. SmsHandler
- D. MsgHandler
Answer: B
NEW QUESTION 56
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 3 with: @Inject public Account getAcc()
- B. Replace line 1 with: @Inject private Account acc;
- C. Replace line 3 with: public @Inject Account getAcc()
- D. Replace line 2 with: public void setAcc(@Inject Account acc)
- E. Replace line 2 with: @Inject public void setAcc(Account acc)
- F. Replace line 1 with: private @Inject Account acc;
Answer: C,D
NEW QUESTION 57
Given:
You are creating an Alarm management system. When you create a new alarm, you want it to create an alert that is triggered once at the specified time.
Which method should you call on Line 9 to create the timer?
- A. timerService.createCalendarTimer(alarmDate, config);
- B. timerService.createTimer(alarmDate, -l, config);
- C. timerService.createIntervalTimer(alarmDate, -l, config);
- D. timerService.createSingleActionTimer(alarmDate, config);
Answer: B
Explanation:
Explanation
Reference https://docs.oracle.com/javaee/6/api/javax/ejb/TimerService.html
NEW QUESTION 58
Given a JSL document describing a batch job:
How do you initiate a batch job?
- A. Call BatchRunTime.initialize(''ProductLoadJob'');
- B. Get the JobExecutionobject from BatchRuntimeand call its start()method.
- C. Get the JobExecutionobject from BatchRuntimeand set its status to JobStatus.INITIATED.
- D. Get the JobOperatorobject from BatchRuntimeand call its start()method.
Answer: B
NEW QUESTION 59
Your class requires multiple resources defined, as shown in the following:
Which annotation do you use to group multiple @Resourcedeclarations together for class-based injection, replacing <XXXX>in the code above?
@Resources
- A. @ResourceGroup
- B. @Resource
- C. @ResourceCollection
Answer: A
NEW QUESTION 60
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 waits for a subscriber, who then consumes it. However, the publisher will time out if no consumer arrives within the given timeout period.
- B. 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.
- C. The message publisher is immediately notified about the lack of subscribers and can decide for itself if, and when, to resend.
- D. The publisher successfully sends a message, which will be consumed later, once there is a subscriber, assuming the message hasn't timed out.
Answer: D
NEW QUESTION 61
Given the set of navigation rules:
Which two define a valid flow of view IDs through the application? (Choose two.)
- A. list-widgets > add-widget > home > dashboard > home
- B. home > list-widgets > add-widget > goodbye
- C. home > goodbye > list-widgets
- D. dashboard > home > add-widget > list-widgets
Answer: A,B
NEW QUESTION 62
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 Transfer Pricing Rules
- C. Manage Cost Organization Relationships
- D. Manage Organization Relationships
- E. Manage Interorganization Markup
Answer: C
NEW QUESTION 63
Which two capabilities are provided by the Java Authentication and Authorization Services (JAAS) API?
(Choose two.)
- A. verifying that a user is allowed to perform an action
- B. protecting data from unauthorized viewing by using encryption
- C. verifying identity claims from users
- D. ensuring that data is not modified in transit
Answer: A,D
Explanation:
Explanation/Reference: https://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html
NEW QUESTION 64
Given:
How often does the submitted task run?
- A. once
- B. based on a schedule
- C. need more details to determine
- D. as many times as you like
Answer: C
NEW QUESTION 65
Given the code fragment:
Which method should be used on line 3to enable default validation mechanism?
- A. u.setEventHandler(ValidationEventHandler)
- B. u.setProperty(Schema)
- C. u.setProperty(String, Object)
- D. u.setAdapter(XmlAdapter)
Answer: D
Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/javaee/6/api/javax/xml/bind/Unmarshaller.html
NEW QUESTION 66
Given the code fragment:
What output will be returned when this servlet is called a GET request?
- A. Service() method called.Get() method called.
- B. An HTTP error
- C. Service() method called.
- D. GET() method called.
Answer: C
NEW QUESTION 67
Given the code fragments:
Which action completes this composite primary key implementation?
- A. Add @Embeddable annotation at line 1 and @EmbeddedId(ContactId.class) at line 2.
- B. Add @IdClass annotation at line 1.
- C. Add @IdClass(ContactId.class) annotation at line 2.
- D. Add @Embeddable annotation at line 1 and replace both @Id annotations with @EmbeddedId annotations.
Answer: A
NEW QUESTION 68
Give the code fragment:
And the code fragment:
The sendConfirmation() and reserve() methods should be executed in the same transactional context.
Which transaction attributes do you ensure this?
- A. Add annotations:@TransactionAttribute (TransactionAttributeType.REQUIRES_NEW) at line
2,@Transactional at line 9 and@TransactionAttribute ((TransactionAttributeType.MANDATORY) at line 12 - B. No additional annotations are required.
- C. Add annotations:@TransactionAttribute (TransactionAttributeType.MANDATORY) at line
2,@Transactional at line 9 and@TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12 - D. Add annotations:@TransactionAttribute (TransactionAttributeType.REQUIRED) at line
2,@Transactional at line 9 and@TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12
Answer: C
NEW QUESTION 69
Which statement is true about the WS-Security standard?
- A. It provides message-level security.
- B. It relies on HTTP security mechanism to protect SOAP messages in transmit.
- C. It is a Java EE standard for protecting SOAP services.
- D. It defines protocol-specific ways of protecting SOAP messages.
Answer: A
Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/cd/E19226-01/820-7627/gjiou/index.html
NEW QUESTION 70
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 is executed followed by the listenCarefully() method.
- B. The listenCarefully() method is executed followed by the actNow() method.
- C. The actNow() method controls the condition upon which the listenCarefully() method is allowed to be executed.
- D. The actNow() and ListenCarefully() methods are executed in parallel.
Answer: B
NEW QUESTION 71
......
Latest 1Z0-900 Pass Guaranteed Exam Dumps with Accurate & Updated Questions: https://www.test4sure.com/1Z0-900-pass4sure-vce.html
Pass 1Z0-900 Exam with Updated 1Z0-900 Exam Dumps PDF 2022: https://drive.google.com/open?id=1j-wyOI-y1NdkNK-peAmDQD5xC9su5uJj