Q. Which of the following exceptions is the base class for all exceptions in PHP?

  • (A) Error
  • (B) Throwable
  • (C) Exception
  • (D) RuntimeException
πŸ’¬ Discuss
βœ… Correct Answer: (C) Exception
Explanation: All exceptions extend the base Exception class, while Error is used for fatal errors. Both implement Throwable.
Explanation by: Rati Dubey
All exceptions extend the base Exception class, while Error is used for fatal errors. Both implement Throwable.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
57
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
95%
Success Rate