R

Rajeev Malhotra • 3.97K Points
Extraordinary

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

  • (A) False
  • (B) True
  • (C) ---
  • (D) ---
  • Correct Answer - Option(A)
  • Views: 139
  • Filed under category JAVA

Explanation by: Rajeev Malhotra
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.


Question analytics