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 can we identify that the page is post back in asp net?

894


Where the viewstate is stored after the page postback?

1011


What is the difference between session and viewstate?

905


What are all the various Estimation Techniques available ?

1056


Is LINQ performance wise better or using sqlcommand?

5006


What are the different types of sessions in asp.net?

898


Explain the steps needed to be performed in order to create an animation in xaml?

962


How can we inherit a static variable?

999


What is an asp.net web form?

1036


What are the advantages of asp.net mvc framework? : asp.net mvc

972


What are the HTML server controls in ASP.NET?

1050


How to implement form based authentication in asp.net application?

1057


What do you mean by authentication?

1019


Name some asp objects?

960


What is query string with example?

903