GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Servlets
Go To First  |  Previous Question  |  Next Question 
 Servlets  |  Question 167 of 170    Print  
_jspService() Method
Why do we use underscore(_) symbol only with jspService() method?


  
Total Answers and Comments: 5 Last Update: July 08, 2009     Asked by: kirankumarg 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 07, 2008 07:34:52   #1  
ramana123123 Member Since: August 2008   Contribution: 1    

RE: _jspService() Method
the _ ( underscore) is used to specify that this method cannot be overriden. so the _jspService() method cannot be overriden.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
August 28, 2008 00:55:16   #2  
Tarun Wadhwa Member Since: August 2008   Contribution: 10    

RE: _jspService() Method
The (_) means that this method is generated by Container and we can not overeride this method.
 
Is this answer useful? Yes | No
September 01, 2008 05:06:52   #3  
raghuprasad Member Since: August 2007   Contribution: 23    

RE: _jspService() Method

underscore _ exist not only for _jspService() but also to the other JSP Life Cycle methods which are

1. _jspInit()
2. _jspService()
3. _jspDestroy()


This type of notation is used so as to difference the Life cycle methods of JSP page and Servlet.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
July 07, 2009 00:09:30   #4  
trinadhd Member Since: July 2009   Contribution: 2    

RE: _jspService() Method
Underscore _ exist not only for _jspService () but also to the other JSP Life Cycle methods .
and these are created by the jspc (means jsp compiler). It comes from web server's which supports servlet and JSP technologies..

 
Is this answer useful? Yes | No
July 07, 2009 23:44:54   #5  
Ravi.Hingarajiya Member Since: February 2009   Contribution: 8    

RE: _jspService() Method
Any methods are not be overriden by end users are typically written starting with '-'.
_jspService method is not also be overriden by end users.

Container invoke this method for each request passing the request and response object.

 
Is this answer useful? Yes | No


 
Go To Top


 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