how can u handle run time exception in java? explain with
brief explanation with examples?
Answer Posted / pavithra
Runtime exceptions represent problems that are detected by
the runtime system. This includes arithmetic exceptions
(such as when dividing by zero), pointer exceptions (such
as trying to access an object through a null reference),
and indexing exceptions (such as attempting to access an
array element through an index that is too large or too
small).
Runtime exceptions can occur anywhere in a program and in a
typical program can be very numerous. Typically, the cost
of checking for runtime exceptions exceeds the benefit of
catching or specifying them. Thus the compiler does not
require that you catch or specify runtime exceptions,
although you can.
Is This Answer Correct ? | 5 Yes | 8 No |
Post New Answer View All Answers
Explain 5 io best practices?
Explain the polymorphism principle?
What occurs when an object is constructed?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What are streams in java 8?
Why is singleton not thread safe?
Why is boolean important?
What does += mean in java?
Explain the public class modifier?
What does escaping a character mean?
Can a string be null?
List the interfaces which extends collection interface?
What do you mean by flow of struts?
Can we create an object of private class?
Whats the difference between notify() and notifyall()?