Q. Which of the following is the most preferred way of throwing and handling exceptions?

  • (A) Throw the pointer value and provide catch for the pointer type.
  • (B) Throw by value and catch by value
  • (C) Throw by reference and catch by reference.
  • (D) Throw by value and catch by reference.
πŸ’¬ Discuss
βœ… Correct Answer: (C) Throw by reference and catch by reference.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
245
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate