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
Why do you use the app_code folder in asp.net?
Define viewstate in .net?
What is a session government?
Is it right that ASP.NET Web API has replaced WCF?
What is base class of .net?
How do you secure your connection string information?
Is asp.net and .net the same?
What are the difference between overriding and overloading?
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
Can you explain composite pattern?
What are the advantages and disadvantages of Using Cookies?
What is routing in MVC?
Define machine.config in .net?
What is asp.net web application?