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
Why we use asp.net for website development?
What is a page life cycle? What are the events in a page life cycle?
Which is better php or asp.net?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?
Why should i prefer JSP over asp.net or any other web development language..??
What is data grid view in asp.net?
Do cookies store passwords?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
Why is the standalone environment only useful during the development process?
What is viewstate? What does the “enableviewstate” property do?
In how many ways we can retrieve table records count?
what are configuration files?
What is the used of "ispostback" property?
Distinguish between Server-side and Client-side code with its functionality?
Describe the events in the life cycle of a web application.