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 is data and its types?
What is the difference between the boolean & operator and the && operator in java programming?
Write a java program that prints all the values given at command-line.
What modifiers may be used with a top-level class?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What is indexof?
What is advantage of java?
Why do we use regex?
What do you mean by global variable?
What is the default execution method in java?
Which number is denoted by leading zero in java?
Describe what a thread-local variable is in java?
What is stringjoiner ?
How many bits is a double?