Why beans are used in J2EE architecture in stead of writing all the code in JSPs ?(a) Allows separation of roles between web developers and application developers (b) Allows integration with Content Management tools
(a)
How multiple EJB instances are managed ?(a) Connection Pooling (b) Caching of EJB instances (c) EJB Passivation (d) All the above
(d)
In JSP, how can you know what HTTP method (GET or POST) is used by client request ?(a) by using request.getMethod() (b) by using request.setMethod() (c) impossible to know
(a)
What is legal about JSP scriplets(a) A loop can begin in one Scriptlet and end in another (b) Statements in Scriptlets should follow Java Syntax (c) Semicolon is needed at the end of each statement in a Scriptlet (d) All the above
(d)
Which method is called first each time a Servlet is invoked ?(a) Start() (b) Run() (c) Servive() (d) init()
(d)
The time between Command Execution and Response is called ______(a) Granularity (b) Latency (c) Lag time
(c)EXPLANATION:Latency: Latency is a measure of the temporal delay. Typically, in xDSL, latency refers to the delay in time between the sending of a unit of data at the originating end of a connection
Purpose of tag(a) used to incorporate Java applets into a Web page. (b) Downloads a plugin to the client Web browser to execute an applet or Bean. (c) Both (a) & (b)
(c)EXPLANATION:JSP Syntax : [ [ ]+ ] [ text message for user ] Description : The tag is replaced by either an or tag, whichever is most appropriate for the client Web browser (the tag
transfers the control to the mentioned destination page. tag substitutes the output of the destination page. Control remains on the same page.
Which of the following can not be used as the scope when using a JavaBean with JSP? (a) session (b) application (c) request (d) response
(d)
Which is true about Servlets (a) Only one instance of Servlet is created in memory (b) MultiThreading is used to service multiple requests (c) Both (a) & (b)
(c)
View page << Previous 1 [2] 3 Next >>

Go Top