Can we define constructor in Servlet class?

Answer Posted / komal singh adhikari

YES,
we can initialized the default constructor.

but we cannot call the parameterized one.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain in brief the directory structure of a web application?

572


What is cookie in servlet?

597


What is the difference in between the httpservlet and generic servlet?

608


How servlet is created?

548


Which application server is best for java?

560






What are the different types of servlets?

518


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2534


What is setattribute in servlet?

558


Why do we have servlet filters?

604


What are the differences between servlet context vs servlet config?

582


Servlet is pure java object or not?

719


What is called servlet container?

666


Which java framework is most popular?

581


What is meant by a servlet?

606


How the servlet is loaded?

601