Question 23 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question 23 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question

Given:

‘URI uri = new URI("ws://www.example.com/api/employee");

WebSocketContainer container = ContainerProvider.getWebSocketContainer();

Session session = container.connectToServer(new SocketHandler(), uti);
RemoteEndpoint. Asyne remote = session. getAsyncRemote();

Employee employee = new Employee("Nancy Taube");
employee.setStatus(Status.FULLTIME);

// send employee object

session.close(new CloseReason(CloseReason.CloseCodes. NORMAL_CLOSURE, "Goodbye");

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

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.