Q. How is the Request object provided to controllers?

  • (A) Manually instantiated
  • (B) Injected automatically via constructor
  • (C) Fetched from global variable
  • (D) Loaded via config file
πŸ’¬ Discuss
βœ… Correct Answer: (B) Injected automatically via constructor
Explanation: Request object is automatically injected into the controller constructor.
Explanation by: Roshan
Request object is automatically injected into the controller constructor.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
9
Total Visits
πŸ“½οΈ
2 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
87%
Success Rate