Difference Between ReadOnly and Constant Variable in
compile time and Run Time.

Answer Posted / karna

I am adding another point to the above answer.

as the constant variable is constant over the class,that
means,all the objects created for that class have the same
value.
but in case of readonly variables,we can assign different
values in the different instances of the class it contains.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enableviewstate?

725


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

788


Please briefly explain the usage of global.asax?

713


Why session is necessary in web application?

716


What is sta?

752


Explain the difference between dataset and datareader.

749


What is intrinsic objects in asp.net?

864


What are the main advantages of using asp.net?

753


What is the difference between session object and application object?

789


3. What goals do you have in your career?

1609


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

2173


Explain login controls.

802


What are the ways to sending the data in ASP.NET page?

745


What is a web farm?

760


Differences between “dataset” and “datareader”.

749