ExamQuestions.com

Register
Login
Java EE 7 Application Developer Exam Questions

Oracle

Java EE 7 Application Developer

22 / 72

Question 22:

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.) 

Answer options:

A. Define an @OnMessage method with a single MimePart parameter.
B. Use a ChunkListener interface implementation.
C. Use a MessageHandler.Partial<ByteBuffer> interface implementation.
D. Define an @OnMessage method with byte [] as the first parameter and a boolean as the second parameter.