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
Why are parameters used in functions?
What is an off by one error in java?
Can I learn java without any programming experience?
What is variable and example?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
Can you add null to a list java?
State one difference between a template class and class template.
what is the purpose of "virtual"?
What is * argv?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
What is assembly language?
How does a for loop work?
What is the difference between JDBC 1.0 and JDBC 2.0?
What is foreach loop in java?
What is a null class?