Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / ravi
No..not at all,,,,servlet is a class which is dynamically
loaded...dynamically loaded class never requires
constructors.
Is This Answer Correct ? | 8 Yes | 18 No |
Post New Answer View All Answers
What is servlet attributes and their scope?
How the typical servlet code look like ?
What is meant by cookies?
Is tomcat a servlet container?
What is Client-Server Computing?
What is ServletConfig object?
Explain the difference between get and post method in servlet?
What is webservlet?
Which application server is best for java?
Can you refresh servlet in client and server-side automatically?
How do cookies work in servlets?
What is servlet invoker?
How do I know if java is running on linux?
What is load-on-startup in servlet?
What are the types of servlets? Explain