What is the purpose of the finally clause?

Answer Posted / dhawal

the code block in finally block must be executed if
exception throws or not,except if we write system.exit(0);

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Main functions of Java?

623


What is meant by distributed application? Why are we using that in our application?

543


What is immutable class in java?

506


What is string pool?

623


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

780






What is return in java?

548


Explain the difference between an Interface and an Abstract class?

617


We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.

1479


What is an abstract class and what is it’s purpose?

531


Can a static method be final?

548


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1455


Can a boolean be null java?

535


Can we make main() thread as daemon?

568


What is regex used for?

538


What is instance means in java?

559