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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
 
A class can be a subclass of itself? Genesis2
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.  1
can anyone explain me the concept of autoboxing?  3
what us Dyna action form? Aithent-Technologies3
what is an object and how do you allocate memory to it? Wipro3
class A{ class B{ } } in which name u save the file,its the program compile? HCL6
How to reduce flicking in animation? TCS1
How many ways can an argument be passed to a subroutine?  2
is this possible to create an array of 0 length? if so how? if not so why? coz we have an array in main() likw this "static void main(String [] s) then what it signifies? Hexaware2
What are the similarities between an array and an ArrayList?  2
What is file class and what is its purpose?  1
How u dubugg ur project? iFlex1
Difference between local and global transaction ? iFlex1
Why Java is not purely object oriented? Persistent21
StringBuilder s = new StringBuilder("Hello Mom");s.append(",I mean,Mother"); Response.Write(s.ToString()); String s = "Hello Mom"; s+ = ",I mean Mom"; Response.Write(s); Which is faster ? which uses the most memory?  4
what is the replacement for GOTO in java? CTS2
Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces. Hewitt13
What is CardLayout? Infosys1
why Runnable interface is preferable than extending the Thread class? Wipro5
How to perform Singleton of the java class object on multi JVM?  1
 
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