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
How to implement role based security in asp.net mvc? : Asp.Net MVC
What are the parts of an http response?
how to include timer or counting time to display next page in asp.net
What is the difference between dynamic SGA and static SGA?
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
Why mvc is better than asp.net? : Asp.Net MVC
How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.
What is difference between viewstate and session state in javascript?
What are sessions used for?
Which is faster union or union all?
What is csrf attack in asp.net?
Write code to send e-mail from an asp.net application?
What is validation in asp.net?
What is asp.net? How is it different from asp?
Please brief not about xsd,xslt & xml?