Home / Report Question

Q. What is the purpose of using exception handling in Ruby?
  • A. To define instance methods in a class
  • B. To create a new instance of a class
  • C. To add module methods to a single object
  • D. To gracefully handle errors and prevent program crashes