What is exception and error? and what is the difference
between them?
Answer Posted / janet
The exception class defines mild error conditions that your
program encounters.
Ex: Arithmetic Exception,FileNotFound Exception
Exception can occur when
--> Try to open the file,which does not exist
--> the network connection is disrupted.
--> operands being manipulated are out of prescribed
ranges.
--> the class file you are interested in loading is
missing.
The error class defines serious error conditions that
you should not attempt to recover from .in most cases it is
advisable to let the program terminate when such an error
is encountered.
Ex. Running out of memory error,stack overflow error.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Can we declare an interface as final?
What is keyset in java?
What are singleton services?
What is data type modifier?
Can we make the abstract methods static in java?
What do you mean by order of precedence and associativity?
What is difference between stringbuffer and string?
What is a Presistent Object?
What is an eror in java?
Does .length start 0 java?
Does java allow overriding static methods ?
Explain java coding standards for interfaces?
Explain about object oriented programming and its features?
What does java stand for?
What are the differences between path and classpath variables?