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.
This section is not available anymore. Please use the main Exam Page.1z0-900 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
orjava
1 year agoYasinGaber
2 years, 8 months agociellaf5
3 years, 3 months ago