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
What is derived datatype?
What is methodological framework?
Why are global variables used?
What are the library functions in java?
Explain throw keyword in java?
What is the main function in java?
What is var keyword ?
Give reasons supporting that string is immutable.
What is finalize() function in java?
Which class is used by server applications to obtain a port and listen for client requests?
what is meant by Garbage collection?
What is the difference between variable & constant?
What is member in java?
What is string and example?
What is the most important feature of java? What is an interface?