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...

What is the Difference between read only and constant
variables?

Answer Posted / raju

1.We can assign value to readonly field, only in
constructor or while declare the variable.But in case of
const we should assign a value while declare.
2.const=static readonly

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is a accessibility modifier “protected internal” available to ?

967


What is constants in c#?

833


What are get and set in c#?

957


Enlist some of the properties of a thread class?

881


What is the difference between ienumerable and iqueryable?

898


Is array immutable in c#?

842


Can private virtual methods be overridden in c#.net?

858


Explain the difference between abstract class and interface in .net?

869


What is dataset and dataadapter in c#?

880


How is lazy loading achieved?

876


What are classes in c#?

923


Wcf and what is difference between wcf and web services?

898


Distinguish between array and arraylist in c#?

970


Explain the Different types of configuration files in .net?

936


What is a c# delegate?

1004