Paper Tayyari

Lecture 28: Servlets Lifecycle

MCQs, short and long questions from lecture 28.Lecture 28 ki MCQs, short aur long sawal.

2 MCQs · 5 short questions · 2 MCQs from past papers2 MCQs · 5 short sawal · 2 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/2
– correctsahi
1.
★ Final term past paper

In the init(ServletConfig) method of Servlet life cycle, what method can be used to access the ServletConfig object?

  1. AgetServletInfo();
  2. BgetInitParameters();
  3. CgetServletConfig();
  4. DNone of the given options

getServletConfig() returns the ServletConfig object passed to init().

2.
★ Final term past paper

Which of the following method is called only once in servlet?

  1. AdoGet()
  2. Bservice()
  3. Cinit()
  4. DdoPost()

init() is called once when the servlet is loaded; service/doGet/doPost run for each request.