what is difference between const, static and readonly?
Answer Posted / magesh
const variable : const can never be modified and
must be initialized to a compile time constant.
Static variable : you received last updated value, when u
getting value for static variable.
Readonly variable : The readonly variable can be changed
inside the constructor.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are ASHX files?
What is bound controls
Define authentication and authorization.
Explain the difference between Repeater and Data list control in ASP.NET?
What are sql notifications and sql invalidations?
What is in a session cookie?
Can you explain composite pattern?
Define managed code and managed data in .net?
Which library is used by the testers and developers to develop automated tests and create testing tools?
What is dynamic web page with example?
Which method is used to perform all validation at the page level?
What is server redirect?
Can you explain page lifecycle in net?
What are the 3 levels at which content pages can be attached to Master Page?
What do you mean by authentication?