Oracle 1z0-900 Exam Practice Questions (P. 1)
- Full Access (142 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
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?
How should you configure a WebSocket endpoints to receive both text and binary messages?
- ACreate two @onMessage methods in the same endpoint with appropriate parameter types.
- BDefine the @onMessage methods in your endpoint with Object as parameter and check the actual type in your code.
- CYou can achieve this only by creating separate WebSocket endpoints for each message type.
- DCreate two @onMessage methods, each with appropriate decoder attribute in the same endpoint.
Correct Answer:
A
A
send
light_mode
delete
Question #2
Which two capabilities are provided by the Java Authentication and Authorization Services (JAAS) API? (Choose two.)
- Aprotecting data from unauthorized viewing by using encryption
- Bverifying that a user is allowed to perform an action
- Censuring that data is not modified in transit
- Dverifying identity claims from users
Correct Answer:
BD
BD
send
light_mode
delete
Question #3
Which interface should you implement if you want to be alerted to the lifecycle events surrounding your task being executed by a ManagedExecutorService?
- Athe Runnable Interface
- Bthe ManagedExecutorTask interface
- Cthe TaskEventListener interface
- Dthe ManagedTaskListener interface
Correct Answer:
D
Reference:
https://github.com/javaee/concurrency-ee-spec/blob/master/api/src/main/java/javax/enterprise/concurrent/ManagedExecutorService.java
D
Reference:
https://github.com/javaee/concurrency-ee-spec/blob/master/api/src/main/java/javax/enterprise/concurrent/ManagedExecutorService.java
send
light_mode
delete
Question #4
Given the code fragment:

Which URL triggers the invocation of the getEmployee () method?

Which URL triggers the invocation of the getEmployee () method?
- A<base url>/Employees/89724
- B<base url>/Employees/J6349
- C<base url>/Employees/id:a7280
- D<base url>/Employees/id/J6349
Correct Answer:
B
B
send
light_mode
delete
Question #5
What is true about Message-Driven Beans (MDBs)?
- AMDBs can participate in transactions.
- BMDBs are invoked synchronously.
- CEach MDBs can process messages only from a single client.
- DMDBs retain data caches between client calls.
Correct Answer:
A
Reference:
https://docs.oracle.com/javaee/7/tutorial/ejb-intro003.htm
A
Reference:
https://docs.oracle.com/javaee/7/tutorial/ejb-intro003.htm
send
light_mode
delete
All Pages