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

What is the purpose of the system class in java programming?

771


What is the use of callablestatement?

797


What is object cloning in Java?

868


Can we declare the main method of our class as private?

778


What are the object and class classes used for?

809


Why is it called boolean?

775


What is jit compiler in java?

815


Is 0 true or false?

735


Is it possible to override the main method?

750


How to use arraylist in java netbeans?

751


What does ide stand for?

719


Why put method is used?

781


How to sort numbers in java without array?

753


If you do not want your class to be inherited by any other class. What would you do?

803


What is consumer in java?

727