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 is type conversion in java?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
Is finalize() similar to a destructor?
What is java literals?
What are the different tags provided in jstl?
Differentiate between static and non-static methods in java.
What is object cloning in Java?
Explain about OOPS concepts and fundamentals.
Explain the pointers in Java?
What is <> used for in java?
What are anonymous inner classes?
Should you use singleton pattern?
What is meant by call by reference?
Is multiple inheritance supported by java?
Which object oriented concept is achieved by using overloading and overriding?