Can we define constructor in Servlet class?
Answer Posted / komal singh adhikari
YES,
we can initialized the default constructor.
but we cannot call the parameterized one.
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Can we use the constructor, instead of init(), to initialize servlet?
What is servlet and its advantages?
What is the difference between Difference between doGet() and doPost()?
If some new data has entered the database, explain how can a servlet refresh automatically?
Can you explain in detail 'javax.servlet' package?
Difference between get and post in java servlets?
What methodology can be followed to store more number of objects in a remote server?
What is the workflow of a servlet?
What do you understand by mime type?
Explain the difference between jsp and servlet?
What are all the ways for session tracking?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Can we use threads in Servlets?
What do you mean by chaining in servlet?
Whether thread can be used in servlets?