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
What are the Difference between asp.net and asp ?
Can I read the hard disk serial # of the client computer using asp.net?
Please briefly explain the usage of global.asax?
What is the differences between a primary key and a unique key in sql server?
How do I open an ashx file in windows 7?
Why session is necessary in web application?
Explain diff. Between friend and protected friend?
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?
How do you declare static variable?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
What are the types of session in asp.net?
Where the cookie value is stored?
What is inproc and outproc?
What is the main differences between asp and asp.net?
Explain the asp.net mvc folder conventions? : asp.net mvc