Question 106Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)

Which of the following statements is/are true with reference to java servlets?

Which of the following statements is/are true with reference to java servlets? (i) A Servlet is a Java program that runs without a web server. (ii) It receives the requests and responds to them using related protocols (usually HTTP).
  1. AOnly (i)
  2. BBoth (i) and (ii)
  3. CNeither (i) nor (ii)
  4. DOnly (ii)
Show answerHide answer

Correct answer: (D) Only (ii)

Explanation

Only (ii) is true: a servlet receives and answers requests, usually over HTTP. It runs inside a web server or servlet container, so (i) is false.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 1 (8:30 AM)

This is question 106 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 1 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.