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 final?
What are the disadvantages of object oriented programming?
How do you create a first line indent?
Can we override private methods?
What is integers and example?
Where we write javascript code in html page?
Is array dynamic in java?
Is call by reference possible in java?
What is boolean query?
Is array synchronized in java?
How do you do a line break in java?
Which is better stringbuffer or stringbuilder?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What is byte value?
What is Garbage Collection in Java