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

What is Dependency of Injection?

947


What is the difference between c and c sharp?

997


How do you serialize an object?

1058


What is the full form of GAC? Explain its uses?

1001


List some of the basic string operation?

907


explain the nature of the assembly work?

2553


What is private in c#?

876


What is integer c#?

901


What do you mean by shared assembly?

1048


Is array passed by reference in c#?

957


What is hashtable c#?

849


What do you mean by saying a "class is a reference type"?

910


Define clr in .net?

981


How can encapsulation be achieved?

1103


What is the purpose of namespace in c#?

863