Ask Question
27 September, 20:01

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. 27 September, 20:38
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers