what is difference between Exception and Error?

Answer Posted / gireesh

Exceptions are also kind of errors which we can hadle at
both compile time and run time by using try and catch
blocks.
These are two types: Compile time and runtime.
Sql and IO operations are come under compile time array
index out of bounds and null pointer these are come under
runtime exceptions

Errors are the problems which we cant hadle, like stack
overflow and memory out of bounds like that...

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is array synchronized in java?

546


Which is faster string or stringbuilder?

507


What is the difference between static (class) method and instance method?

562


What is a bubble sort in java?

533


How to find the given number is a prime number or not by getting input from the user

540






What are the different types of java?

545


What is the difference between class & object?

547


What is an immutable class?

604


How does the garbage collector works in java?

560


What is arrays sort in java?

564


who can i handle multiple client in RMI

1431


What does @param args mean in java?

539


List out five keywords related to exception handling ?

594


What is the point of java?

542


describe method overloading

527