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 to retrieve property settings from xml .config file.

1059


What is server side in asp.net?

1027


What is the difference between page directive include and action tag include?

1002


What is the maximum amount of memory any single process on windows can address?

1081


What is the biggest disadvantage of “Other Return Types” in Web API?

1463


Where can I get the details on migration of existing projects using various technologies to asp.net?

1162


Explain what is an abstract class?

1078


What is the purpose of url encoding?

1030


What is a postback ispostback and autopostback in asp net?

958


How to implement role based security in asp.net mvc? : Asp.Net MVC

1183


Define a static class?

1034


What is the difference between table and query?

1021


Will session work if cookies is disabled?

1061


What are the new features implemented in ASP.NET?

1130


What are validator? How do you disable them?

1206