1.

Can servlet class declare constructor with ServletConfig object as an argument?(a) True(b) FalseI have been asked this question in examination.Question is from Servlet topic in section Java Server Technologies & Servlet of Java

Answer»

The correct answer is (b) False

Explanation: SERVLETCONFIG object is CREATED after the constructor is CALLED and before init() is called. So, servlet init PARAMETERS cannot be accessed in the constructor.



Discussion

No Comment Found

Related InterviewSolutions