crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

What is the difference Final Finally and Finalize
Question Posted on 03 May 2020Home >> DotNet >> ASP.NET >> What is the difference Final Finally and Finalize

What is the difference Final Finally and Finalize
Below is the details for above three Final Finally and Finalize with some example.
Final
Final is a keyword in c# which is used to declare constant. Now some other facts about the Final keyword. When we define variables in interface that are implicitly final. And when we use Final keyword with class then it cannot be extended. And final class also may not be sub-classed. We can also use that with basic classes for security. We cannot overridden final method when its class is inherited. we cannot change value of a final variable as is a constant.

Finalize
This methods helps in garbage collection. This method is mainly used just before and object is destroyed and garbage collector.

Finally
Finally is a keyword that is used in exception handling. This is a blocks which is always executed when try blocks is there. Except the call of System.exit(0). And it is always executed whether error occurs.
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Use of Calendar control in dotnet with code

How to improve Front End UI performance of dotnet web application?

File upload in dotnet

reverse a string

function of garbage collector






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap