The method __________ is used to set the length of the content body in the response.
- setBodyLength()
- setContentLength()
- setContentSize()
- setResponseLength()
The setContentLength() method is used to set the length of the content body in the response.
Loading...
Related Quiz
- An e-commerce website uses auto-scaling but faces downtime during sudden traffic spikes. What might be missing in their scaling strategy?
- Which method in a filter is responsible for cleaning up resources when the filter is taken out of service?
- What are the implications of using optimistic vs. pessimistic locking strategies in database transactions?
- When designing a servlet that handles sensitive data, which header should be set to secure the response?
- The return type of the method used to retrieve a servlet initialization parameter is _________.