Related questions with answers

Question

How do you define a custom exception class?

Solution

Verified
Answered 1 year ago
Answered 1 year ago
Step 1
1 of 2

By extending Exception or some subclass of Exception.

For example:

public class WrongData extends RuntimeException { ... }

Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy
Continue with GoogleContinue with Facebook

Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy
Continue with GoogleContinue with Facebook

More related questions

1/4

1/7