Which Java API is used for creating WebSocket applications in Java EE?
- java.socket
- java.web
- javax.communication
- javax.websocket
The javax.websocket API is used for creating WebSocket applications in Java EE, providing classes and interfaces to work with the WebSocket protocol.
Loading...
Related Quiz
- What is a common strategy for handling the situation when all connections in the pool are in use?
- The __________ method of AsyncContext is used to dispatch the request to another servlet.
- The __________ method is generally used for fetching data where the request does not affect server state.
- Reducing the number of database ________ can significantly improve performance in a web application.
- Consider a scenario where a servlet application needs to update client-side widgets in real-time. Which technology would be more efficient: AJAX polling or WebSockets?