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 sorting algorithm does javascript use?
Explain tree set and its features?
Can an interface implement another interface?
What is %d in printf?
Can we create our own daemon thread?
What is getclass () getname () in java?
How to make a read-only class in java?
In how many ways we can do synchronization in java?
How can we make copy of a java object?
can rmi and corba based applications interact ?
What classes of exceptions may be caught by a catch clause in java programming?
What are the different ways of creating thread?
What is the difference between choice and list?
What are different types of arrays?
What is autoboxing in java?