What is difference between constants, readonly and, static

Answer Posted / kirti

Constants: The value can�t be changed

Read-only: The value will be initialized only once from the constructor of the class.

Static: Value can be initialized once.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .net framework in simple terms?

531


What is entity framework? : Entity framework

557


What is meant by tempdata in mvc?

528


Is .net framework backwards compatible?

597


What is display mode in mvc?

569






Is .net core faster than .net framework?

542


What is the use .glimpse in mvc?

585


What is the difference between viewbag and viewdata in asp.net mvc?

613


What is entity graph? : Entity framework

520


How to make sure Client Validation is enabled in ASP.Net MVC

554


explain lazy loading, eager loading, and explicit loading?

561


what is linq to entities?

626


What is .net framework & its benefits?

510


What is Peek method in Tempdata in ASP.Net MVC?

592


how can you enhance the performance of entity framework?

584