JAVA
Monday, September 6, 2010
Can we write constructors in servlets ?
Ans. Container creates servlet instances using its no-argument constructor. So the answer is Yes, You can write constructor but, if you write a constructor with arguments, you need to provide a no-arg constructor also.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment