Why is it important to close resources like database connections in servlets?
- All of the above
- To avoid memory leaks
- To conserve memory
- To improve performance
Closing resources like database connections is important to avoid memory leaks and ensure efficient memory usage in servlets.
Loading...
Related Quiz
- In distributed systems, what is a cache stampede and how is it typically mitigated?
- Which component in the MVC framework is typically implemented using servlets?
- In caching strategies, what is meant by 'cache warming'?
- The __________ method can be used to get runtime information about memory usage.
- _________ scaling involves adding more resources to the existing servers.