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
Elaborate differentiation between Cache and Application?
What do you mean by serialize and marshalbyref?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What is new asp.net core?
Explain the difference between webfarm and webgardens in .net?
What is a web based system?
What is the default authentication mode for asp.net?
Can we have multiple master pages in asp net?
What are Master Pages in ASP.NET? or What is a Master Page?
What is viewstategenerator?
What do you mean by authorization?
What is the use of view state?
Why session is necessary in web application?
Can viewstate be accessed in another page?
What is the difference between system.stringbuilder and system.string