Home » JAVA Programming » Java Basic » Question
  1. Can servlet class declare constructor with ServletConfig object as an argument?
    1. False
    2. True
    3. NA
    4. NA
    5. NA
Correct Option: A

ServletConfig object is created after the constructor is called and before init() is called. So, servlet init parameters cannot be accessed in the constructor.



Your comments will be displayed only after manual approval.