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
Is java util regex pattern thread safe?
List two java ide’s?
What does you mean in math?
What is an empty string in css?
Name few java.lang classes introduced with java 8 ?
What is the syntax and characteristics of a lambda expression? Explain
How do I start learning java?
Can anonymous class have constructor?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is the difference between this() and super() in java?
Explain thread life cycle in java?
What is method with example?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
Does java return by reference?
What is difference overloading and overriding?