In a servlet's lifecycle, which method is responsible for responding to client requests?

  • doGet()
  • doPost()
  • init()
  • service()
The service() method in a servlet's lifecycle is responsible for responding to client requests. It delegates the request to the appropriate method (e.g., doGet() or doPost()).
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *