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

Can we access the web controls in a page pre initialising event?

2 Answers  


How do I use partial view?

0 Answers  


what are partial classes?

12 Answers   Digimaker, HP, N Tech, TCS,


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

0 Answers  


How you deploy .NET assemblies

1 Answers  






Difference between <connectionstring> and <appsettings>

4 Answers  


What is namespace used for loading assemblies at run time and name the methods?

2 Answers  


When i am using Ajax controls (updatepanel),Is page events all are executed or only some events are executed?which page events are executed?

5 Answers   TCS,


What is entityset? : Entity framework

0 Answers  


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

0 Answers  


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

0 Answers  


Explain two instances where routing is not implemented or required?

0 Answers  


Categories