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 driver class?

581


Explain the difference between hashmap and hashtable in java?

502


What are loops in java? What are three types of loops?

559


What is the difference between static and non-static variables in java programming?

532


What is gc()?

589






What are heterogeneous objects?

583


What is the effect of keeping a constructor private?

494


What are the topics in advance java?

535


What is a singleton class? Give a practical example of its usage.

603


How can you avoid serialization in child class if the base class is implementing the serializable interface?

648


What are 3 data types?

554


What is the default value of float and double datatype in java?

553


How can we access some class in another class in java?

561


Is linked list a linear or non-linear data structure?

559


What are internal variables?

582