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

Given:

Which client-side Java method will send the employee object to the WebSocket Server Endpoint?

    Correct Answer: D

    To send an object over a WebSocket connection in Java, the appropriate method to use will be one that allows the asynchronous sending of the object. In this case, `remote.sendObject(employee);` is correct, where `remote` is an instance of `RemoteEndpoint.Async` obtained from the `session`. This method matches the function specified in the code provided, making option D the correct choice.

Discussion
zee2021Option: D

D is correct Awnser

devmsalehOption: D

D is correct Answer

peteVlnOption: D

Indeed: D is correct Answer

orjavaOption: D

Answer D