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

What is Web API Routing?

1176


Why do we need Sessions?

1041


What is the best Macanism to clear the Cache in asp.net

1228


What is the procedure to create the environment for asp.net? : asp.net mvc

1048


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

980


Is asp.net and .net the same?

1048


What permissions do asp.net applications posses by default?

1079


Where is the session stored?

1105


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

1038


About CLR, reflection and assemblies?

1967


What do you mean by serialize?

975


What is a swagger in web api?

1058


How do you remove duplicates without using remove duplicate stage?

1054


How many web.config files can I have in an application?

978


What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

1881