1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
 

Recent Questions

  • Exception handling in Servlet and JSP specifications view answer
  • Details about load on startup (load-on-startup tag) in Servlet ? view answer
  • What's the difference between init() & init(ServletConfig) and Which is better ? view answer
  • Servlet Life Cycle ? view answer
  • Q. Can we override init() or init(ServletConfig) method of HttpServlet ? Which is better ? view answer
  • Q. Can we override service method in HttpServlet ? view answer
  • Q.What is the difference between init() and init(ServletConfig) ? view answer
  • Q.How to upload an File/image from servlet/jsp into server from clients machine? view answer
  • What's the difference between init() & init(ServletConfig) in genericServlet ? view answer
  • Q.What is the difference between ServletContext and PageContext? view answer
  • Q.What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()? view answer
  • Q.Difference forward() and response.sendRedirect() . view answer
  • Q.Can we use the constructor, instead of init(), to initialize servlet? view answer
  • Q.Explain the life cycle of Servlet? view answer
  • Q.Why don't we write a constructor in a servlet? view answer
  • Q.When we don't write any constructor for the servlet, how does container create an instance of servlet? view answer
  • Q.Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()? view answer
  • Q.Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time? view answer
  • Q.Request parameter How to find whether a parameter exists in the request object? view answer
  • What is new in ServletRequest interface ? view answer
  • Q.Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html view answer
  • Q.When a client request is sent to the servlet container, how does the container choose which servlet to invoke? view answer
  • Q.What is servlet container? view answer
  • Why IllegalStateException in jsp/servet? view answer
  • Q.How do I upload a file in a servlet app? view answer
  • Q.What's the difference between response.sendRedirect() and requestDispatcher.forward() ? view answer
  • Q.How do I implement security for my web application ? view answer
  • Q.How can I use servlets with protocols other than HTTP, e.g. FTP? view answer
  • Q.What happens if i call destroy() from init()? view answer
  • Q.Why can't a container call constructor having parameters? view answer
  • Q.Why do servlets have an init method? Can't we make use of the servlet constructor for initialization? view answer
  • Q.Explain the life cycle methods of a Servlet. view answer
  • Q.Explain the directory structure of a web application view answer
  • Q.What are the common mechanisms used for session tracking? view answer
  • What is load-on-startup in servlet ? view answer
  • Q. What is the difference between the getRequestDispatcher(String) and getNamedDispatcher(String) methods in the ServletContext Class? view answer
  • Q: What is the difference between Difference between doGet() and doPost()? view answer
  • Q. What is the difference between ServletContext and ServletConfig? view answer
  • Q: What is the difference between HttpServlet and GenericServlet? view answer
  • Q.What is the difference between the getRequestDispatcher(String path) method of ServletRequest interface and ServletContext interface? view answer

!!! Servlet Frequently Asked Questions !!!

Q.Can we use the constructor, instead of init(), to initialize servlet?

!!!Answer!!!- From Technical Expert

Yes , of course you can use the constructor instead of init(). There's nothing to stop you. 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 constructur 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.

Answered By : null Replied Date : Jan 23 2014
Answer :


Answered By : null Replied Date : Dec 23 2013
Answer :


Answered By : null Replied Date : Dec 17 2013
Answer :


Answered By : null Replied Date : Nov 23 2013
Answer :


Answered By : null Replied Date : Nov 16 2013
Answer :


Answered By : null Replied Date : Nov 8 2013
Answer :


Answered By : null Replied Date : Nov 4 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 1 2013
Answer :


Answered By : null Replied Date : Nov 1 2013
Answer :


Answered By : null Replied Date : Oct 18 2013
Answer :


Answered By : null Replied Date : Oct 14 2013
Answer :


Answered By : null Replied Date : Oct 12 2013
Answer :


Answered By : null Replied Date : Oct 11 2013
Answer :


Answered By : null Replied Date : Oct 10 2013
Answer :


Answered By : null Replied Date : Oct 9 2013
Answer :


Answered By : bhumi Replied Date : Feb 16 2014
Answer : yes; we can have constructor in servlet.


Answered By : null Replied Date : Feb 28 2014
Answer :


Answered By : null Replied Date : Apr 10 2014
Answer :


Answered By : null Replied Date : Apr 11 2014
Answer :


Answered By : null Replied Date : Apr 27 2014
Answer :


Answered By : null Replied Date : May 18 2014
Answer :


Answered By : null Replied Date : Jun 6 2014
Answer :


Answered By : null Replied Date : Jun 14 2014
Answer :


Answered By : null Replied Date : Jun 28 2014
Answer :


Answered By : null Replied Date : Jul 4 2014
Answer :


Answered By : null Replied Date : Jul 7 2014
Answer :


Answered By : null Replied Date : Jul 8 2014
Answer :


Answered By : null Replied Date : Aug 1 2014
Answer :


Answered By : null Replied Date : Aug 2 2014
Answer :


Answered By : null Replied Date : Aug 2 2014
Answer :


Answered By : null Replied Date : Aug 5 2014
Answer :


Answered By : null Replied Date : Aug 15 2014
Answer :


Answered By : null Replied Date : Aug 17 2014
Answer :


Answered By : null Replied Date : Aug 21 2014
Answer :


Answered By : null Replied Date : Aug 22 2014
Answer :


Answered By : null Replied Date : Aug 29 2014
Answer :


Answered By : null Replied Date : Sep 28 2014
Answer :


Answered By : null Replied Date : Sep 28 2014
Answer :


Answered By : null Replied Date : Sep 30 2014
Answer :


Answered By : null Replied Date : Oct 21 2014
Answer :


Answered By : null Replied Date : Nov 2 2014
Answer :


Answered By : null Replied Date : Nov 3 2014
Answer :


Answered By : null Replied Date : Dec 5 2014
Answer :


Answered By : null Replied Date : Jan 5 2015
Answer :


Answered By : null Replied Date : Feb 10 2015
Answer :


Answered By : null Replied Date : Mar 27 2015
Answer :


Answered By : null Replied Date : Mar 28 2015
Answer :


Answered By : null Replied Date : Jun 8 2015
Answer :


Answered By : null Replied Date : Jun 8 2015
Answer :


Answered By : null Replied Date : Jun 10 2015
Answer :


Answered By : null Replied Date : Aug 17 2015
Answer :


Answered By : null Replied Date : Aug 18 2015
Answer :


Answered By : null Replied Date : Aug 19 2015
Answer :


Answered By : null Replied Date : Aug 25 2015
Answer :


Answered By : null Replied Date : Oct 15 2015
Answer :


Answered By : null Replied Date : Oct 15 2015
Answer :


Answered By : null Replied Date : Oct 15 2015
Answer :


Answered By : null Replied Date : Nov 12 2015
Answer :


Answered By : null Replied Date : Dec 31 2015
Answer :


Answered By : null Replied Date : Jan 9 2016
Answer :


Answered By : null Replied Date : Feb 22 2016
Answer :


Answered By : null Replied Date : Feb 26 2016
Answer :


Answered By : null Replied Date : Mar 2 2016
Answer :


Answered By : null Replied Date : Mar 3 2016
Answer :


Answered By : null Replied Date : Mar 6 2016
Answer :


Answered By : null Replied Date : Mar 9 2016
Answer :


Answered By : null Replied Date : Mar 9 2016
Answer :


Answered By : null Replied Date : May 4 2016
Answer :


Answered By : null Replied Date : May 6 2016
Answer :


Answered By : null Replied Date : May 18 2016
Answer :


Answered By : null Replied Date : May 22 2016
Answer :


Answered By : null Replied Date : Jul 7 2016
Answer :


Answered By : Answered By Replied Date : Aug 17 2016
Answer :     null Replied Date : Jul 7 2016


Answered By : Answered By : null Replied Date : Mar 9 2016 Answer : Answered By : null Replied Date : May 4 2016 Answer : Answered By : null Replied Date : May 6 2016 Answer : Answered By : null Replied Date : M Replied Date : Aug 17 2016
Answer : Answered By :    null Replied Date : Mar 9 2016
Answer :    
Answered By :    null Replied Date : May 4 2016
Answer :    
Answered By :    null Replied Date : May 6 2016
Answer :    
Answered By :    null Replied Date : May 18 2016
Answer :    
Answered By :    null Replied Date : May 22 2016
Answer :    
Answered By :    null Replied Date : Jul 7 2016
Answer :    
Answered By :    Answered By Replied Date : Aug 17 2016
Answer :     null Replied Date : Jul 7 2016


Answered By : techFAQ Home Welcome TechFAQ360! TechFAQ360 contains many quality PMP,CAPM, OCPJP, Java Tutorials, JSP Tutorials, Hibernate Tutorials, Struts Tutorials, JSF Tutorials, RMI, MySQL Tutorials, Spring Tu Replied Date : Aug 17 2016
Answer : techFAQ
Home
Welcome TechFAQ360!

TechFAQ360 contains many quality PMP,CAPM, OCPJP, Java Tutorials, JSP Tutorials, Hibernate Tutorials, Struts Tutorials, JSF Tutorials, RMI, MySQL Tutorials, Spring Tutorials.


Are You Recruiter/Hiring Manager?

Try Today...

Qns & Answers

Oracle
MySQL
Java
JSP
Servlet
Struts
Hibernate
JDBC
EJB
JMS
Informatica
C/C++
Spring
PMP/CAPM/OCPJP/OCEJWCD
PMP , CAPM , OCPJP & OCEJWCD Questions

PMP

PMP5
CAPM5
OCPJP

SCJP/OCPJP 5
SCJP/OCPJP6
OCAJP7
OCPJP7
Upgrade to OCPJP 7
OCEJWCD

SCWCD5
OCEJWCD6
Free Test

PMP5
CAPM5
Interview Prep & Tutorials
Interview Questions and Tutorials

Interview Questions

Struts
Hibernate
ORACLE
JSP
Servlet
Java
Spring
JMS
EJB
JDBC
C/C++
Informatica
OOPS and Desgin Pattern
Freshers

Campus
C/C++
Apptitude
Oracle
Java
JSP
MySQL
Servlet
Struts
Hibernate
JDBC
Spring
Tutorials

Struts
Spring
Hibernate
JDBC
JSP
Web Services
EJB
MySQL
Java
Servlet
Java Script
Oracle
Certification Tutorials

OCPJP6 & 7
Upgrade OCPJP7
OCPJP Tips
OCPJP Dump
SCWCD
ITIL
ITIL V3
Others
CandidateTest
Jobs
Login
Free Tests
Services
Articles
Ask
Papers
Sitemap
About Us
Android Apps
Iphone Apps
Online Test
Paid and Free Tests

PMP5
CAPM5
Project Mgmt
Agile/Scrum
Quality
Aptitude
SCJP
Java
Java Advance
Android
Android & Java
JSP
Oracle
Hibernate
Servlet
C
C++
J2EE
WebServices
MySQL
Struts
EJB
JQuery
JavaScript
Are You Recruiter/Hiring Manager

Try Today...
*Filter candidates using TestYourCandidate.com and save 80% time ( saving time for recruiters and interviewers)
*More than 50% candidates can be filtered on Candidate Screening online tests
*Inbuilt exams are available in library, created and tested by experts
Try Today...

1600 PMP mock questions    1400 CAPM mock questions    800 SCJP 6 mock questions    600 OCAJP 7 mock questions    590 OCPJP 7 mock questions    556 SCWCD 5 mock questions    500 OCEJWCD 6 mock questions    pdfDownload (java,struts, hibernet etc)

Recent Questions

Exception handling in Servlet and JSP specifications view answer
Details about load on startup (load-on-startup tag) in Servlet ? view answer
What's the difference between init() & init(ServletConfig) and Which is better ? view answer
Servlet Life Cycle ? view answer
Q. Can we override init() or init(ServletConfig) method of HttpServlet ? Which is better ? view answer
Q. Can we override service method in HttpServlet ? view answer
Q.What is the difference between init() and init(ServletConfig) ? view answer
Q.How to upload an File/image from servlet/jsp into server from clients machine? view answer
What's the difference between init() & init(ServletConfig) in genericServlet ? view answer
Q.What is the difference between ServletContext and PageContext? view answer
Q.What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()? view answer
Q.Difference forward() an


Answered By : Answer :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="verify-v1" content="qd/ViPbDzvLa2Nh1HsNKvGp1J7hB6agcrVUkSlV2MnM=" />


<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Q.Can we use the constructor, instead of init(), to initialize servlet?
</title>

<meta name="keywords" content="SCJP Success Kit, SCJP 5.0 Mock Test Exam, SCJP 6.0 Mock Test Exam,SCJP 1.6 Mock Test exam,SCJP 1.5 Mock Test exam,SCWCD 5.0 Mock Test, SCWCD 4.0 Mock Test,SCJP 1.4 Mock Test Exam,SCJP 5.0 DUMP,SCJP 6.0 DUMP, scjp mock test,SCJP Mock Exam Questions DUMP,OCA Mock Test, OCP Mock test,scjp certificate,scjp tutorial,scjp test,scjp exam,scjp dump,scjp 1.5,scjp 1.6,scjp 5, scjp 6, scjp sample,scjp sun certified,scjp sun certified programmer,scjp study guide,scjp guide,in scjp,for scjp exam,scjp material,scjp voucher,scjp 1.5 dump,scjp materials,sun certified programmer,sun certification,sun certified programmer,scjp exam" />

<meta name="keywords" content="SCJP Success Kit, SCJP 5.0 Mock Test Exam, SCJP 6.0 Mock Test Exam,SCJP 1.6 Mock Test exam,SCJP 1.5 Mock Test exam,SCWCD 5.0 Mock Test, SCWCD 4.0 Mock Test,SCJP 1.4 Mock Test Exam,SCJP 5.0 DUMP,SCJP 6.0 DUMP, scjp mock test,SCJP Mock Exam Questions DUMP,OCA Mock Test, OCP Mock test" />

<META name="description" content= "techfaq360.com : SCJP Success Kit, SCJP 5.0 Mock Test Exam, SCJP 6.0 Mock Test Exam,SCJP 1.6 Mock Test exam,SCJP 1.5 Mock Test exam,SCWCD 5.0 Mock Test, SCWCD 4.0 Mock Test,SCJP 1.4 Mock Test Exam,SCJP 5.0 DUMP,SCJP 6.0 DUMP, scjp mock test,SCJP Mock Exam Questions DUMP,OCA Mock Test, OCP Mock test,Free Online Java,JSP,Servlet,EJB,Struts,Hibernate, SCJP, OCP, ORACLE Mock Test, Free Online Hibernate Mock Test, Free Online Struts Mock Test, Free Online oracle Mock Test, Free Online C Mock Test">

<meta name="Technology FAQ" content="Technology FAQ, Java, Oracle, Struts, Hibernate, Spring, MySQL" />
<meta name="Frequently Asked Question" content="Frequently Asked Question Java, Frequently Asked Question Oracle, Frequently Asked Question Struts, Frequently Asked Question Hibernate, Frequently Asked Question Spring, Frequently Asked Question MySQL, Interview Questions" />
<META name="Mock Test"
content="Free Online Java Mock Test, Free Online Hibernate Mock Test, Free Online Struts Mock Test, Free Online oracle Mock Test, Free Online C Mock Test"/>
<META name="description" content="techfaq360.com : Hibernate Mock Test, Struts Mock Test, Hibernate Online Test, Struts Online Test, ORACLE Online Test, Practice Test,Java Mock Test, JSP Online Test,Servlet Mock Test, jsp Mock Test,Hibernate Mock Test, Struts Mock Test, ORACLE Mock Test, Practice Test,Java Mock Test, JSP Mock Test,Servlet Mock Test, jsp Mock Test,servlet mock test free, aptitude mock test free"/>
<META name="name" content="techfaq360.com : Hibernate Mock Test, Struts Mock T


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Oct 6 2016
Answer :


Answered By : null Replied Date : Oct 10 2016
Answer :


Answered By : null Replied Date : Oct 12 2016
Answer :


Answered By : null Replied Date : Nov 6 2016
Answer :


Answered By : null Replied Date : Jan 24 2017
Answer :


Answered By : null Replied Date : Jan 27 2017
Answer :


Answered By : null Replied Date : Feb 7 2017
Answer :


Answered By : null Replied Date : Feb 15 2017
Answer :


Answered By : null Replied Date : Feb 23 2017
Answer :


Answered By : null Replied Date : Mar 13 2017
Answer :


Answered By : null Replied Date : Apr 12 2017
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy