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 is static noise?

507


What is a int in c#?

462


What is the purpose of static?

503


What is the difference between decimal and integer?

524


How do you pronounce c#?

501






What is meant by console programming?

479


Does the system.exception class have any cool features?

511


What's the difference between abstraction and encapsulation?

467


What do u mean by thread safe?

501


What is type cast in C#?

565


What is verbatim literal in c#?

491


What is difference between a type and class?

602


What is difference between write and writeline in c#?

490


Is c# pass by value?

487


Explain about accessibility modifier 'protected internal'?

545