πŸ“Š JAVA
Q. Can servlet class declare constructor with ServletConfig object as an argument?
  • (A) False
  • (B) True
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) 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.

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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
226
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
88%
Success Rate