Computer Science, asked by AnnieStar, 11 months ago

Difference between errors and exceptions​

Answers

Answered by sushiladevi4418
2

Answer:

Difference between errors and exceptions.

Explanation:

Difference between errors and exceptions.

Error:

1) Error cannot be recovered.

2) There is no such classification in error.

3) Error is always unchecked.

4) In case of error, the compiler won't know about errors.

Exception:

1) Exception can be recovered.

2) Exception is classified into two forms.

3) Exception can be checked or unchecked.

4) In case of checked, the exception compiler will know checked exception and force to keep the try-catch block

Answered by yash3374
1

Answer:

Hey mates

Here is your answer

Your question:-

Difference between errors and exceptions?

Your answer:-

Exception:-

(1) Exception can be recovered

(2) Exception can be classified into two ways

(I) checked exceptions

(ii) Unchecked exception

(3) In the case of checked exceptions compiler will have knowledge of checked exceptions and force to keep try to catch blocks.

Errors:-

(1) Errors cannot be recovered

(2) There is no such classification for errors. Errors are always unchecked.

(3) in case of errors compiler won't have knowledge of errors.

I hope this answer help you

Please mark me brainliest.

Similar questions