What is the primary purpose of using WebSockets in web applications?
- Batch processing
- File storage
- Real-time communication
- Static content delivery
The primary purpose of WebSockets in web applications is to enable real-time communication between the client and server, allowing for interactive and dynamic updates without the need for constant polling.
Loading...
Related Quiz
- In a scenario where a filter needs to restrict access based on user roles, which object or method is essential for implementing this?
- When a new attribute is added to the session, which listener interfaces are invoked?
-
In the context of filter configuration, what is the purpose of the
tag in web.xml? - In Java, which keyword is used to manually suggest the garbage collector?
- What is the primary advantage of using a PreparedStatement in JDBC?