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 a three-tier application.
What is a custom attribute?
Which of the following API is used to hide a window?
Why linq is having select clause at the end?
How do I type a whitespace character?
Is cli same as the clr?
What language do desktop applications use?
Is it possible to have a static indexer in c#? Allowed in c#.
What is difference between write and writeline in c#?
What is wrong with the sample program below?
List out the differences between array and arraylist in c#?
Explain the difference between class and interface in .net?
Is c# a technology?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
How does array sort work?