what is difference between Exception and Error?

Answer Posted / ganesh

Exception means When a method encounters an abnormal
condition (an exception condition) that it can't handle
itself, it may throw an exception.
Error mens system doesn't handle.For example:Overflow,Out
of memory.

Is This Answer Correct ?    68 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java allow default arguments?

582


What is the use of runnable interface?

592


What is return in java?

540


What is the impact of declaring a method as final?

546


What does localhost mean?

485






How to sort an array from smallest to largest java?

528


How to convert string to byte array and vice versa?

569


Is char a method in java?

502


What do you understand by an io stream?

569


What are the different types of data structures in java?

476


List some java keywords sun like c, c + + keywords?

573


What is a modifier?

850


What is the purpose of the System class?

570


What is the exact difference in between Unicast and Multicast object? Where will it be used?

572


What happens if I remove static from main method?

509