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

What is an object in java?

553


How do you control extraneous variables?

501


Is minecraft 1.15 out?

545


Write a method that will remove given character from the string?

569


Are arrays passed by reference in java?

481






What is the new line character?

555


What are synchronized blocks in java?

598


What is listnode in java?

533


What invokes a thread's run() method in java programming?

565


what do you mean by stream pipelining in java 8? Explain

533


What is try-with-resources in java?

609


What are the advantages of autoboxing?

535


Give example to differentiate between call by value and call by reference.

588


What is java objectoutputstream?

541


What is the purpose of a parameter?

527