in Web Technologies
1,940 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
in Web Technologies
1.9k views

1 comment

I have confusion b/w option (A) and (B) since both r client side. :)
0
0

1 Answer

1 vote
1 vote
Best answer

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
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true