Answer Posted / doshi rinal 9998099633
Error: Any departure from the expected behavior of the
system or program, which stops the working of the system is
an error. Exception:Any error or problem which one can
handle and continue to work normally.
An Exception can be caught and recovered:
ArrayIndexOutOfBoundsException means you tried to access a
position of an Array that does not exist - no big deal.
An Error is unrecoverable: OutOfMemoryError means that
the JVM has no more memory to store.
Java a compile time error is normally called an "error,"
while a runtime erroException can be handled and Error can
not be handled
When Error occur then our program stops and don't run but
If exception occur then nothing happening only try block
will be suspended and after that if any code is written
that will be executed properly means our system or program
work properly.
r is called an "exception."
| Is This Answer Correct ? | 13 Yes | 10 No |
Post New Answer View All Answers
What do you mean by inner class in java?
Why does abstract class have constructor?
What is the meaning of flag day?
What technique is carried out to find out if a particular string is empty?
What do you mean by stream pipelining in java 8?
How can you handle java exceptions?
What data type is string java?
What is the range of a character variable?
What are the features of java?
what do you mean by marker interface in java?
What is the properties class?
How do you delete a list in java?
can rmi and corba based applications interact ?
Can inner class extend any class?
What are filterstreams?