J

Oracle 1Z0-900 Practice Exam

Information About Oracle 1Z0-900 Exam



Vender: Oracle

Exam Code: 1Z0-900

Exam Name: Java EE 7 Application Developer

Number Of Questions: 69

Certification Name: Oracle Java

Exam Language: English

Questions Type: MCQs

Material Format: PDF & Web Practice Test Software


Prepare Oracle 1Z0-900 Exam Questions

Question No 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?

A. Create two @onMessage methods in the same endpoint with appropriate parameter types.
B. Define the @onMessage methods in your endpoint with Object as parameter and check the actual type in your code.
C. You can achieve this only by creating separate WebSocket endpoints for each message type.
D. Create two @onMessage methods, each with appropriate decoder attribute in the same endpoint.

Answer: D

See More Questions

Join the conversation

You can post now after register. If you have an account, sign in now to post with your account.