What is the correct sequence of steps for handling a client in a Java servlet…

PYQ RPSC Programmer 2024

What is the correct sequence of steps for handling a client in a Java servlet as per the lifecycle of a servlet?

  1. A.

    Init method, Service method, doPost/doGet method

  2. B.

    Init method, doPost/doGet method, Service method

  3. C.

    Service method, doPost/doGet method, Destroy method

  4. D.

    Init method, Service method, Destroy method

  5. E.

    Question not attempted

Attempted by 254 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…