Ask Question
12 May, 12:17

State whether true or false.

i) init () of servlet is called after a client request comes in

ii) Servlets are ultimately converted into JSP

A) i-false, ii-false

B) i-false, ii-true

C) i-true, ii-false

D) i-true, ii-true

+2
Answers (1)
  1. 12 May, 14:18
    0
    A) i-false, ii-false

    Explanation:

    i)

    init () method is only called once at the time of creation of servlet, it is not called for the client request. It is a one time initialization. The init () method is used creating and loading data that will be used throughout the life of the servlet.

    Definition Init () method

    public void init () throws ServletException {

    / / Initialization code ...

    }

    ii)

    Servlet is a java class that contains Java Api specification. Every Jsp is ultimately converted to Servlet, as in JSP you put Java inside HTML and for Servlet you put HTML inside JAVA. Both JSP and Servlet is used for server side scripting.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “State whether true or false. i) init () of servlet is called after a client request comes in ii) Servlets are ultimately converted into JSP ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers