A

Admin • 828.03K Points
Coach

Q. Can servlet class declare constructor with ServletConfig object as an argument?

  • (A) False
  • (B) True
  • (C) ---
  • (D) ---
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Java
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.