Difference Between ReadOnly and Constant Variable in
compile time and Run Time.
Answer Posted / karna
I am adding another point to the above answer.
as the constant variable is constant over the class,that
means,all the objects created for that class have the same
value.
but in case of readonly variables,we can assign different
values in the different instances of the class it contains.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How can you register a custom server control to a web page?
Less than one page, how many windows will you be able to maintain?
Explain Session state management options in ASP.NET.
What are the different types of validation controls provided in ASP.NET?
What is a web api? Which protocol is used in a web api?
What does aspcompat="true" mean?
Give an example of cookie abuse.
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
Explain the asp.net mvc request life cycle? : asp.net mvc
What is ashx file in asp.net?
What is difference between Fragment Caching and Page Caching in ASP.NET?
What is the difference between custom controls and user controls?
What is the latest version of asp.net?
What do you understand by aggregate dependency?
How do you secure your configuration files to be accessed remotely by unauthorized users?