aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Constructor" Watch "Constructor" New topic
Author

Constructor

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
Rancher

Joined: Mar 06, 2001
Posts: 13459

This is a fairly common question, see these threads:

http://www.coderanch.com/t/366050/Servlets/java/servlets-have-constructor
http://www.coderanch.com/t/365826/Servlets/java/called-constructor-servlet-file-If
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Constructor
 
Similar Threads
question
Constructor
Why no final constuctor
why we cant't use constructor for initializing servlet
what actually constructor returns