java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
Answer / vandana singh
If you want to do a task that must be perform with every situation when exception occurs or not. that you should write the code for this in finally block. cause finally block execute in both situation exception occurs or not.
if an exception occurs then catch block statements execute after that control transfer to finally block.
if any exception not occurs than control transfer to finally block.
| Is This Answer Correct ? | 26 Yes | 0 No |
I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one
What are the types of statement? explain
What is an arraylist in java?
Which keyword specify that a variable is effectively final ?
Difference between abstract and concrete class ?
What are functions in java?
How can I debug the Java security exceptions and AccessControlExceptions?
What is scanner in java?
Is logger a singleton?
What is non static block in java
10 Answers Emphasis, Ness Technologies,
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is a marker interface?