what are the rules to use try catch finally?
Answer / naveen
Rules to using try catch finally blocks.
First thing is try,catch and finally blocks are used in
Exception Handling.In try block we are write Exception
rising code in catch block using exception handling code and
finally block is used to releasing the resource. try and
catch blocks are executed are not finally block is executed.
we are using this combination
try{
//Exception rising Code
}catch(Exception e){
}finally{
//releasing the resource
}
2)
try{
//Exception rising Code
}catch(Exception e){
}
3)try{
//Exception rising Code
}finally{
//releasing the resource
}
| Is This Answer Correct ? | 11 Yes | 0 No |
what do you mean by java annotations?
Is it possible to override private or static method in java?
What is the concatenation operator in java?
What are the 6 functions?
Can you explain the meaning of aggregation and composition
What is cloneable interface?
How is string immutable in java?
What is a java object and java application?
What are passing parameters?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
how to identify duplicate values in arraylist
What is the full form of jpeg?