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 |
Can java list contain duplicates?
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?
What is the functionality of the stub?
What are the operands of instanceof operator?
Explain hashset and its features?
Write a program to search a number in the given list of numbers.
what is the use of abstract class and interface with example?
2 Answers Cycore, DNS, Technoram,
What is byte [] in java?
How the metacharacters are different from the ordinary characters?
Why does java doesnot support multiple inheritance?
In Serialization, whether you will use Static variables?
What is the difference between java and .Net?