File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Constructor" Watch "Constructor" New topic


shruti patel
Ranch Hand

Joined: Mar 10, 2008
Posts: 52
Can we call both Constructor() and int() method in servlet?
why we go for init() why not constructor?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

This is a fairly common question, see these threads:
I agree. Here's the link:
subject: Constructor
It's not a secret anymore!