Catch(Exception e){
}
in that what is Exception and purpose of that in that place
exactly?
Answer Posted / sreenu karampudi
The Catch block is used to catch the exception which is
from the try block. The exception type should be same in
order to catch it otherwise it won't
for example;
try {
// piece of code which gets ArthimeticException
}
Catch(ArthimeticException e) [
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What classes of exceptions may be caught by a catch clause in java programming?
What is the base class of all classes?
How is java created?
Give me some null interfaces in java?
Define a package.
What is charat java?
Does constructor be static?
What is the abstract class?
What is java util function?
What is an object in java and how is it created?
What is busy spin, and why should you use it?
What is super?
what state does a thread enter when it terminates its processing? : Java thread
What are nested classes in java?
Is java se free?