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