This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
You can, but there would be little point since it would not be called by the container when loading the Servlet, and in doing so you may prevent the no-arg constructor from being called and stop the Servlet from being initialised at all.
The short answer is: not in any meaningful sense, no.
rehans oberoi
Ranch Hand
Joined: Dec 06, 2005
Posts: 174
posted
0
recently this question was asked in two interviews. how can i convince them by saying no. [ February 19, 2006: Message edited by: rehans oberoi ]
Well you don't convince them, you provide reasoning. If you need more information, we have discussed constructors in servlets a few times, such as here.