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 a variable simple definition?
What does regex mean?
What is the use of toarray () in java?
What is the base class of all exception classes?
Can we extend private class in java?
What is string in java is it a data type?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What is the use of runnable interface?
What is the exception hierarchy in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is hashing principle in java?
Why bytecode is called bytecode?
Can a static method be overridden in java?
What is the final class?
What is the difference between the boolean & operator and the && operator in java programming?