Ask 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

A) i-false, ii-false

B) i-false, ii-true

C) i-true, ii-false

D) i-true, ii-true

+4
Answers (1)
  1. 3 June, 14:02
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers