TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David
NA
5
0
Try Catch Finally
Jul 21 2006 1:51 PM
Hi.
I was wondering if anybody could explain to me the purpose of the Finally block in exception handling. For example, what is the difference between these two pieces of code.
Example 1:
try
{
// open a file
}
catch (IOException ioe)
{
// log the error or something
}
finally
{
// do more stuff
}
Example 2:
try
{ // open a file
}
catch (IOException ioe)
{
// log the error or something
}
// do more stuff
Thanks,
Dave
Reply
Answers (
3
)
What will happen in a client machine and in a server when I request a service from an url
Datagridview scrolling problem