Catch(Exception e){
}

in that what is Exception and purpose of that in that place
exactly?

Answer Posted / kabita

bcoz Exception is d base class of all exceptions arise in d
programme.if u write this no need to consider what type of
exception is arised in try block of d programme.,it will
handle all d exception.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you remove all elements from an arraylist in java?

504


What are the four integer types supported by java?

558


Can we create a constructor in abstract class?

567


How does compareto work in java?

571


Can we write any code after throw statement?

603






Can we have multiple catch block for a try block?

584


Why Java is not pure Object Oriented language?

639


Is main an identifier?

546


Explain the difference between transient and volatile in java?

571


Can a class extend more than one class?

607


How do you take thread dump in java?

552


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

495


What does 0 mean in boolean?

539


Are arrays primitive data types?

634


In the below example, what will be the output?

592