Originally posted by ravi kotha:
Reply from Chetan....
"You can�t define method within a method in Java."
But we write method System.out.println() with in other methods in Java. Need some clarification about this....
We don't (
rather can't)
define a method in another method, we just
call it.
If you mean, calling init() method inside service() method, then it's a valid question.
And my answer is, servlet
is a java class, so you can do in servlet whatever you do in java class. So yes, you can call.