Difference Between ReadOnly and Constant Variable in
compile time and Run Time.
Answer Posted / saiish bhat
readonly is compile time constant.
constant is runtime constant.
constatnt field is used to initialize at the declaration of
the field.
readonly field is used at the declaration or constructor of
the field.
Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Describe a Windows Service and its lifecycle ?
What is asp short for?
Distinguish between Server-side and Client-side code?
List the types of authentication supported by asp.net?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
Can we have multiple master pages in asp net?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
What is the concept of postback in asp.net?
What is the full meaning of asp.net?
What is parse in asp.net?
How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.
What are the difference between function and stored procedure in .net programming language?
What is the request flow used for asp.net mvc framework? : asp.net mvc
What is redirectpermanent in asp.net?
What are the new features implemented in ASP.NET?