When is the finally clause of a try-catch-finally statement executed?
Answer / Saurabh Chandra
The finally block is always executed, whether an exception occurs or not, after the execution of the try and catch blocks. It is executed before the program transfers control back to the caller.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which is better list or arraylist in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What are serialization and deserialization?
What is string example?
Why for each loop is used?
What value is a variable of the string type automatically initialized?
When try and catch block is used ?
What are 3 boolean operators?
How is garbage collection controlled?
What is arraylist e?
Why do we use public static with the main function in Java?
13 Answers College School Exams Tests, Infosys,
Why does java not support operator overloading?