Servlets can be made thread-safe by making shared resources __________.
- abstract
- final
- synchronized
- volatile
Servlets can be made thread-safe by making shared resources synchronized, which ensures that only one thread can access the resource at a time.
Loading...
Related Quiz
- Describe how a servlet can process AJAX requests using GET and POST methods.
- A transaction's property ensuring that either all its operations are completed successfully, or none are, is known as _________.
- In a CallableStatement, the method _________ is used to execute a SQL function.
- How would you handle errors and timeouts in an asynchronous servlet operation?
- HTTP persistent connections are managed using the _________ header in servlet responses.