Link to home
Start Free TrialLog in
Avatar of FairyBusiness
FairyBusinessFlag for United States of America

asked on

What is the difference between if/else and try/finally in C#?

Hi, I am very familiar with the if/else statements but less familiar with the try/finally statements.  I am wondering when I should use one versus the other?  What is the difference exactly?
ASKER CERTIFIED SOLUTION
Avatar of p_davis
p_davis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you might knowing one of the following language, are you?

 c,c++,java,sql,vb?

there is no difference in c# also .

try catch and if else usage are same for all languages..

regards..
C does not have try/catch.
Avatar of FairyBusiness

ASKER

the languages I know are as follows: html, css, javascript, php, and sql.  The try/catch/finally may be in other languages as well but I never used it before, and decided I might try to now.

thanks for the input guys!