Question discussion

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 serve…

3271Medium DSSSB TGT Computer Science 0 replies

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).

  • AOnly (i)
  • BBoth (i) and (ii)
  • CNeither (i) nor (ii)
  • DOnly (ii)
Correct answer: D

Explanation

A servlet is a Java program that runs on a web server and receives requests and responds using protocols such as HTTP. So only (ii) is true.

Discussion 0

Nobody has replied yet. Start the discussion!