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 char in java?
What is externalizable interface?
What are the 8 data types in java?
Can we assign the reference to this variable?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What do you mean by local class?
What is a class object?
how can you catch multiple exceptions in java?
Is space a char?
What is the tradeoff between using an unordered array versus an ordered array?
How do you square a number in java?
What is treeset and treemap in java?
What are the two ways in which thread can be created?
How to perform linear search in java?
How do you reverse a string in java?