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
Which method is used to enforce garbage collection in .net?
Explain about secure socket layer?
Which object encapsulates state or data of a user?
Why do we use asp.net?
What is distributed system in asp.net?
What is a SESSION and APPLICATION object?
Define machine.config in .net?
Describe a bubbled event and how it is used ?
How can you enable impersonation in the web.config file?
WSDL means?
How many types of state management are there in asp net?
Why session is used in asp.net?
What are tuples?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
What is the difference between mechine.config and web.config?