nerdexam
Oracle

1Z0-900 · Question #1

1Z0-900 Question #1: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-900 to reveal the answer and full explanation for question #1. The question stem and answer options stay visible for context.

Create Java Applications using WebSockets

Question

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?

Options

  • 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
  • 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

Unlock 1Z0-900 to see the answer

You've previewed enough free 1Z0-900 questions. Unlock 1Z0-900 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#WebSocket endpoints#@onMessage decoder#binary/text messages#message type handling
Full 1Z0-900 Practice