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


Please Help Members By Posting Answers For Below Questions

How do you find the absolute value?

563


Can size_t be negative?

618


What is mnemonic in assembly language?

554


What is the use of parse function in java?

512


Give few difference between constructor and method?

522






What do you understand by an io stream?

587


Where import statement is used in a java program?

610


What is autoboxing and unboxing?

584


Explain about automatic type conversion in java?

572


Explain the init method?

544


What is meant by tab pans?

649


Explain heap sort?

700


What is not object oriented programming?

509


Is minecraft java edition free?

578


What’s the difference between unit, integration and functional testing?

616