what is difference between Exception and Error?

Answer Posted / sushma

Exception- This class is used for exceptional conditions that user programs should catch.

Error- It defines exceptions that are not expected to be caught under normal circumstances by your program.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is linked list a linear or non-linear data structure?

531


What is a void in java?

566


What is difference between class and object in java?

513


What method is used to specify a container's layout in java programming?

526


What is flag in python?

538






What are use cases?

544


What is command line argument in java?

587


What is the use of protected in java?

521


What do you understand by an io stream?

564


What is floor math?

499


What is the argument in java?

479


Is java hashset ordered?

561


How does sublist works in java?

521


Can you run java program without main method?

535


What is an accessor?

1024