Difference Between ReadOnly and Constant Variable in
compile time and Run Time.
Answer Posted / kamlesh sharma
readonly variables are can be initilized at compile time
but we can assign values to readonly varialble at once
through functions or constructors
but in case of constant variables once assign a value we
can't change value and must assign value to constant
variables at the time of declarition
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain method to handle error using HttpError in Web API?
What are validator? Name the validation controls in asp.net?
How to turn off cookies for a page?
Can you explain page lifecycle in net?
Where viewstate value is stored in asp.net?
Difference between singleton and singlecall.
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
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?
What’s the difference between asp.net web forms and asp.net mvc?
Explain the steps needed to be performed in order to create an animation in xaml?
What are the difference between function and stored procedure in .net programming language?
What do you understand from custom control?
Is asp.net is a programming language?
Define transparent caching with aop?
What symbol specifies the beginning of a query string?