what is the difference between finally and dispose methods?

Answer Posted / sunil

finally will execute after the try block. It must execute
if there is any exception caught in the catch blobk or not.

Dispose method is the last method executed in the c# program

Is This Answer Correct ?    12 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are class fields?

684


Why is aws serverless?

671


Write a program to find the angle between the hours and minutes in a clock

680


What is connection pooling in ado.net?

708


Can we have multiple constructors in a class c#?

672


What is the compiler of c#?

694


What are circular references?

702


What is generic method in c#?

664


What is concrete class in c#?

648


How to implement an object pool in c#.net.

776


What is toint32 c#?

811


What are the advantages of generics in c#?

680


What is difference between ilist and list in c#?

653


What are the steps for creating clr trigger

768


What is assembly c#?

644