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
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
What is difference between web api and web services?
How many types of file extensions for razor views in ASP.Net MVC?
What is the difference between custom controls and user controls?
What is a query string in a url?
What is the server of asp.net?
How we implement web farm and web garden concept in asp.net?
How long should a session id be?
What are the types of authentication in asp.net?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
What is rending process in ASP.NET?
Which of the following .NET framework supports Web API?
What is the difference between session object and application object?
What is the difference between system.stringbuilder and system.string
Explain the role of global.asax?