what is difference between Exception and Error?

Answer Posted / md.tanweer alam

ERROR:-error may occur internaly in the program code through
the resources the program trying to access.
the source of error may be user input error such as giving a
wrong URL device erroe such as printer not ready physical
limitation such as disk full or memory not enough and code
error like arroay index out of bound trying to access an
empty stack and divide by zero error..
EXCEPTION:-all these above mention errors occuring in
abnormal condition called exception

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between serializable and externalizable in java?

527


What is the impact of declaring a method as final?

551


In a class implementing an interface, can we change the value of any variable defined in the interface?

543


What is a ?

743


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

557






Is java a compiler?

561


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1649


Does java list allow null?

528


What is diamond operator in java?

489


What are multiple inheritances? Is it supported by java?

453


What is the difference between the final method and abstract method?

533


Why super is first line in java?

548


What is the use of a copy constructor?

563


How can we run a java program without making any object?

531


Can a function return a function?

534