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
What is Dependency of Injection?
What is the difference between c and c sharp?
How do you serialize an object?
What is the full form of GAC? Explain its uses?
List some of the basic string operation?
explain the nature of the assembly work?
What is private in c#?
What is integer c#?
What do you mean by shared assembly?
Is array passed by reference in c#?
What is hashtable c#?
What do you mean by saying a "class is a reference type"?
Define clr in .net?
How can encapsulation be achieved?
What is the purpose of namespace in c#?