GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  JSP
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 95 of 184    Print  
State true or false: - Can the constructor be used instead of init () to initialize a Servlet
Skill/Topic: Servlets
A) True
B) False
Explanation: But you shouldn’t. The original reason for init() was that ancient versions of Java couldn’t dynamically invoke constructors with arguments, so there was no way to give the constructor a ServletConfig. That no longer applies, but Servlet containers still will only call your no-arg constructor. So you won’t have access to a ServletConfig or ServletContext.



  
Total Answers and Comments: 1 Last Update: April 21, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 20, 2006 23:51:00   #1  
sudheerkumarmvk Member Since: April 2006   Contribution: 1    

RE: State true or false: - Can the constructor be used...
false
 
Is this answer useful? Yes | No

 Related Questions

Skill/Topic: Programming ConstructsA) None of the above B) content safeC) synchornisedD) thread safe  
Latest Answer : Thread Safe,so that no other request can interrupt. ...

Skill/Topic: Programming ConstructsA) TrueB) False 
Latest Answer : The Bean class which we write has to extend Serializable Interface to make that bean Serialized. The bean itself won't become Serialized automatically.Raghu.  ...

The response.sendRedirect("……..”); is the response implicit object to redirect the browser to the different resource
Skill/Topic: Programming ConstructsA) TrueB) False 

Skill/Topic: Programming ConstructsA) TrueB) False 
Latest Answer : TrueThe action element enables a JSP page author to generate HTML for downloading the Java Plug-in, if it is not installed, and executing an applet. Specifically the action generates the OBJECT element for Internet Explorer or the EMBED ...

We can restrict the calling of the errorPage in the JSP by setting the value true for the ______ param in the ErrorPage attribute of the Page Directory
Skill/Topic: Programming ConstructsA) isErrorpage 

Skill/Topic: Programming ConstructsA) TrueB) FalseExplanation: use the JSPWriter object 
Latest Answer : true ...

Skill/Topic: Programming ConstructsA) Can be used to incorporate contents from static documents B) It offers option of sharing local variables and better run time efficiencyC) Provides benefit of 
Latest Answer : A, B and D are seems to be correct.Because A) the include directive allows you to bring in code from another file without re-writing the code.B) As this inclusion of file is done during compilation time, there is no overhead during runtime and hence run ...

Skill/Topic: Programming ConstructsA) It offers option of sharing local variables and better run time efficiencyB) Can be used to incorporate contents from static documents C) Provides benefit of 
Latest Answer : D. Can provide dynamically generated output,B. ...

Adding a meta, usage like tag to the jsp prevents it from being indexed by the search engines like Yahoo and Google
Skill/Topic: Programming ConstructsA) TrueB) False 

State true or false -- Without using frames we can have a vertical scrollbar with a jsp which in turn is part of other jsp. ?
Skill/Topic: Programming ConstructsA) TrueB) FalseExplanation: use the div tag. 


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 

NLP State Management

NLP State Management Introduction A combination of the internal representations of the mind and the physiology of the body form a complete Neuro linguistic state of consciousness Such states are a part of our day to day life Some states bring us empowerment whereas others limit our potential We need
 

Neuro-linguistic Programming Methods

Neuro linguistic Programming Methods There are several methods used for performing Neuro linguistic Programming on an individual for obtaining insights into the psyche of the person in order to correct to modify certain patterns of behavior These techniques are also used for Neuro linguistic trainin
 

UML Elements : State Diagram

UML Elements State Diagram The state diagram is used as a symbol for finite state machines It may also be used to represent state transition tables Of the 13 diagrams available in UML 2 0 the state diagram has some of the most variations In addition to coming in different forms it may also use vario
 

The Difficult Past of Neuro-linguistic programming

The Difficult Past of Neuro linguistic programming Neuro linguistic programming has had a rocky past with a number of lawsuits rivalry unsystematic development and intermittent progress During the 1980s the two founders separated after the lawsuit filed by Bandler Bandler went on to file several law
 

History of Neuro Linguistic Programming (NLP)

History of Neuro linguistic programming Neuro Linguistic Programming NLP is a system co founded by John Grinder and Richard Bandler for bringing about personal development in any individual by interpreting and translating the human perception experience beliefs and language It was developed in early
 

The Current State of Enterprise Resource Planning

The Current State of Enterprise Resource Planning To analyze the future trends of Enterprise Resource Planning it is first important to look at the current state of this industry While this tool was originally used for manufacturing and human resources it is now being used in areas such as customer
 

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