ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
when a servlet sends request for first time it uses  the 
follwing methods
a)init
b)doget()
c)dopost()
d)service
 Question Submitted By :: Sasirekha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service
Answer
# 1
when servlet gets first request, webcontainer loads the class and creates the object for it.
2)Constructor executes
3)webcontainer creates ServletConfig obj for servlet obj
4)init() method executes
5)service() method executes.
 
Is This Answer Correct ?    2 Yes 0 No
Sri
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is thin driver and thick driver. why it is called so? Logisoft1
what is the difference between a java object reference and c++ pointer?  3
How can you say HashMap is syncronized? IBM13
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1 Huawei3
Can you have an inner class inside a method and what variables can you access?  2
when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?  4
waht happens when a return type ,even void is specified for a constructor?  10
Which method will get invoked first in a stand alone application?  1
I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance... Cybernet2
why there are multiple catches for a try block.don't tell me that there can be multiple exception of a code segment that's why.tell me the real fact behind this.  4
How can be define MARKER interfce in java  1
how exactly garbage collection take place?  4
Default layout of Dialog object?  1
what is use of session tracking ?with example? Photon1
What is the life cycle of an Applet ?  1
Explain class A{} class B{} class C{} all the three classes are saved in a single file name, what the name should i provide to the file ,in what file name should i run the program? Ple Explain DNS6
what is difference between colection and collections? Tech-Mahindra8
What are E and PI?  1
Explain different ways of passing arguments to sub-routine?  1
What happens if an exception is not caught?  4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com