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 a three-tier application.

1102


What is a custom attribute?

949


Which of the following API is used to hide a window?

1085


Why linq is having select clause at the end?

968


How do I type a whitespace character?

1142


Is cli same as the clr?

950


What language do desktop applications use?

994


Is it possible to have a static indexer in c#? Allowed in c#.

997


What is difference between write and writeline in c#?

950


What is wrong with the sample program below?

1066


List out the differences between array and arraylist in c#?

1051


Explain the difference between class and interface in .net?

914


Is c# a technology?

966


Explain what a diffgram, and a good use for one Define diffgram? How it be used?

1054


How does array sort work?

964