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
Can an exception be thrown from a catch block?
What is a static property. Give an example?
Can you store strings in arrays?
what are pointer types in c#
What is the difference between “finalize” and “finally” methods in c#?
What is ilasm.exe used for?
What is namespace in oop?
What is datasource c#?
What is difference between class and abstract class in c#?
What do you mean by jagged array?
What is session state in asp net c# with example?
What do you mean by object pooling?
What is difference between private and static constructor?
How does foreach loop work in c#?
What problem does Delegate Solve?