What is the Difference between read only and constant
variables?
Answer Posted / raju
1.We can assign value to readonly field, only in
constructor or while declare the variable.But in case of
const we should assign a value while declare.
2.const=static readonly
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Who is a accessibility modifier “protected internal†available to ?
What is constants in c#?
What are get and set in c#?
Enlist some of the properties of a thread class?
What is the difference between ienumerable and iqueryable?
Is array immutable in c#?
Can private virtual methods be overridden in c#.net?
Explain the difference between abstract class and interface in .net?
What is dataset and dataadapter in c#?
How is lazy loading achieved?
What are classes in c#?
Wcf and what is difference between wcf and web services?
Distinguish between array and arraylist in c#?
Explain the Different types of configuration files in .net?
What is a c# delegate?