What error occurs if a try-catch-finally statement sequence
does not have a catch clause?

Answer Posted / nagaraju

we can have try block with out catch block, but we should
have finally block after try block(if catch block is not
there). If any exception occurs in the try block or not
finally block will be executed.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why runnable interface is used in java?

823


Is it possible for a yielded thread to get chance for its execution again?

727


Difference between method overloading and overriding.

787


Are arrays primitive data types?

853


Explain the difference between an Interface and an Abstract class?

881


Which is a valid identifier?

772


Does list allow duplicates in java?

700


Is the empty set a singleton?

721


Is singleton set an interval?

721


What is the purpose of static keyword in java?

719


How do you achieve polymorphism in java?

717


What do you mean by composition in java?

778


How to reverse a string in java?

763


Why is java called java?

789


Can a main method be declared final?

799