What is difference between constants, readonly and, static



What is difference between constants, readonly and, static..

Answer / 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

More Dot Net Framework Interview Questions

What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

0 Answers  


How we can add the CSS in ASP.Net MVC?

0 Answers  


What is .net framework in simple terms?

0 Answers  


will there be any issues adding a table without primary keys to a data model?

0 Answers   Microsoft,


What is global assembly cache

2 Answers   BirlaSoft,






What is RouteConfig.cs in ASP.Net MVC 4?

0 Answers  


Explain the advantages of dependency injection (di) in asp.net mvc?

0 Answers  


Explain how you can send the result back in JSON format in MVC?

0 Answers  


What is the version number for the next version of the .net framework, codenamed �orcas�?

0 Answers  


How you deploy .NET assemblies

1 Answers  


Can we create .DLL file without using the namespace?

4 Answers  


What is Jit compilers?.how many are available in clr

1 Answers  


Categories