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

Write a program to find maximum and minimum number in array?

553


What is thread start?

523


how we can make a write-only class in java?

562


What happens to a static var that is defined within a method of a class?

549


Which number is denoted by leading zero in java?

813






What is an object's lock and which object's have locks in java programming?

571


What is the disadvantage of java?

508


What are the steps involved to create a bean?

685


Does treeset use compareto?

543


Can you declare a private method as static?

699


Why does java not allow multiple public classes in a java file ?

3446


What is replacefirst in java?

578


What is composition in java?

730


What is an example of declaration?

526


Can a singleton class be inherited?

529