GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Computer Associates  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 18 of 23    Print  
What is Temporary Servlet ?
(a) Servlet that is destroyed at run time
(b) Servlet that exists for a session
(c) Servlet that is started and stopped for each request
(c)
EXPLANATION:
A temporary servlet is started when a request arrives and shut down after the response is generated.

A permanent servlet is loaded when the server is started and lives until the server is shut down.
* This is useful when startup costs are high, such as a servlet that establishes a connection to a database.
* Also useful for permanent serverside service, such as an RMI server.
* Provides faster response to client requests when this is crucial.

Being temporary or permanent is part of the server configuration.



  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

What exception is thrown when Servlet initialization fails ?(a) IOException (b) ServletException (c) RemoteException
(b) 

How can a Servlet call a JSP error page ?(a) This capability is not supported. (b) When the servlet throws the exception, it will automatically be caught by the calling JSP page. (c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException". (d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie.
(c) 

At what stage, the life cycle of a CMP bean can be assumed to be started ?(a) before ejbCreate() method is executed (b) after ejbCreate() method is executed (c) in postCreate() method (d) after executing ejbStore()

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) 

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 

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)  

What is Temporary Servlet ? (a) Servlet that is destroyed at run time (b) Servlet that exists for a session (c) Servlet that is started and stopped for each request
(c) EXPLANATION: A temporary servlet is started when a request arrives and shut down after the response is generated. A permanent servlet is loaded when the server is started and lives until the  


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Getting Started with Oracle and ODP.NET

ODP NET Developer’ s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

What is Data Collection Time

Modern Relational Database Management Systems can be configured to collect data at certain events.  In a business, some of the events are sale, order, deposit, pay, request and many more. Events are really business activities in a company.  Big companies, in order to gain competiti
 

The Right Time To Make A Career Change

Changing careers is one of the most crucial stages in one’s career life. There are employees who get into the career change phase earlier than other employees. But no matter how an employee enjoys his or her current career, there would come a time that an employee would think of shifting c
 

Getting Started with VoiceXML

VoiceXML Introduction VoiceXML is an XML format that is used for the purpose of categorizing voice dialogues that will occur among humans and computers. It is connected to W3C, and it gives voice programs the ability to be created and used with HTML. HTML document is designed to be read by web brows
 

Client Server : Object Request Brokers

Client Server Object Request Brokers The Importance of Middleware Middleware is the connective layer in client server models The multi vendor software is compiled by designers to enable services that allow multiple machines to process multiple requests and interact across a network It also allows co
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Supply Chain Management : Just In Time

Supply Chain  Management Just In Time Introduction In the realm of supply chain management Just in time” refers to an inventory strategy that it used to improve a business’ s return on investment through a reduction of in process inventory and all related costs Just in
 

Java Technology Trends

Technology Trends Involving Java Java is an object oriented programming language OOP for Web browsers It is organized around data rather than actions and supports polymorphism which allows the same code to be written generically so it can function with different datatypes inheritance which allows on
 

Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape