what is difference between Exception and Error?

Answer Posted / kapil gupta

Error is syntax error
where
Exception is logical error
and it can be handle by try-catch block

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an i/o filter?

569


What is break and continue statement?

616


Explain about features of local inner class?

603


Why we go for collections in java?

553


What is an interface in java? Explain

578






How do you do absolute value in java?

525


How we can run a jar file through command prompt in java?

524


Where pragma is used?

602


Difference between overriding and overloading in java?

581


How do I know if java is installed?

520


Does sprintf add a null terminator?

565


Can we declare the main method of our class as private?

557


What are the important features of Java 11 release?

582


What is jdbc api?

541


what is heap memory?

658