Exam 1z0-900 All QuestionsBrowse all questions from this exam
Question 24

You need to exchange large binary messages using chunks in a WebSocket application. Identify two ways in which you can receive partial messages. (Choose two.)

    Correct Answer: C, D

    To receive partial messages in a WebSocket application, you can use a MessageHandler.Partial<ByteBuffer> interface implementation, which allows you to handle parts of a message as they are received. Additionally, defining an @OnMessage method with a byte array as the first parameter and a boolean as the second parameter provides a mechanism to process message chunks, where the boolean indicates whether the message is complete.

Discussion
orjavaOptions: CD

Answer C, D

peteVlnOptions: CD

Correct answers are C and D Oracle reference: https://docs.oracle.com/javaee/7/api/javax/websocket/MessageHandler.Partial.html https://abhishek-gupta.gitbook.io/java-websocket-api-handbook/receiving-messages