Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / saiish bhat

readonly is compile time constant.
constant is runtime constant.

constatnt field is used to initialize at the declaration of
the field.
readonly field is used at the declaration or constructor of
the field.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How ASP and ASP.NET page works? Explain about asp.net page life cycle?

1040


What is ASLM?

1121


What is preprocessor in .net?

980


Why we use asp.net for website development?

903


How to improve performance of web application asp.net mvc? : Asp.Net MVC

1024


What is strong-typing versus weak-typing?

1125


Why select Web API?

1015


How can you register a custom server control to a web page?

990


What is work flow gen? how can it will work with .Net?

3047


What is the difference between trace and debug in asp.net?

1139


Describe how to implement globalization and localization in the use interface in .net.

963


How do session tokens work?

956


How do you do client-side validation in .net? How to disable validator control by client side javascript?

1033


What is redirectpermanent in asp.net?

1072


What threading model used in asp and asp.net?

1068