1,927 views
2 votes
2 votes
Which of the following statements is false ?
(A) A servlet can be invoked through a JavaScript
(B) A servlet can be invoked through an applet
(C) A servlet is executed on the server side
(D) A servlet instance is created for each client request

1 Answer

Best answer
1 votes
1 votes

Answer (D)

Option A: Yes, it can be invoked by Javascript. Invoking a servlet is just like making a call to web page. 

Option B: Yes, it can be invoked by a Applet. Infact anyone capable of calling a webpage can call a servlet. Because servlet is processed on server and client only gets HTML form (page) of it, so client does not need to be aware ideally about the servlet, other than the input params (if any) to pass.

Option C: Yes it is executed on server side and client only gets HTML form.

Option D:This is wrong. Only one instance is created and that instance is used to process client request(s). For each client request, a new thread is created which uses same instance of servlet.

selected by

Related questions

0 votes
0 votes
1 answer
1
Beyonder asked Mar 6, 2017
992 views
The main reason for preferring servlet for web application developmentis :(A) Increased performance of web application(B) Easy to develop an application(C) Platform indep...