Q. Which of the following statements is NOT true about creating your own exceptions?

  • (A) Typically, constructors are the only methods that you include when you define your own exception class.
  • (B) The exception class that you define extends either the class Throwable or one of its subclasses.
  • (C) If you have created an exception class, you can define other exception classes extending the definition of the exception class you creat
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) The exception class that you define extends either the class Throwable or one of its subclasses.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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