Difference Between ReadOnly and Constant Variable in
compile time and Run Time.
Answer Posted / kamlesh sharma
readonly variables are can be initilized at compile time
but we can assign values to readonly varialble at once
through functions or constructors
but in case of constant variables once assign a value we
can't change value and must assign value to constant
variables at the time of declarition
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is strong-typing versus weak-typing?
How Session use Cookies in State Management?
Is asp.net different from asp? If yes, explain how?
Will the asp.net validators run in server side or client side?
What are the asp.net security controls?
Explain the difference between or and orelse?
Explain about Multi-Language integration?
What are the new web part controls in asp.net 2.0 ?
Explain different types of validators in asp.net?
What are HTTP handlers in ASP.NET?
What is the use of asp.net web api?
What are the steps involved to fill a dataset?
How can we create a website?
Name the two properties are on every validation control?
What is the difference between user control an custom control?