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

Why extension method is static?

855


What is console programming language?

898


Explain About Postback

888


What is the advantage of dependency injection?

931


What is difference between singleordefault and firstordefault?

854


How we convert private assembly into public assembly?

901


Is c sharp open source?

813


Why constructor is used in c#?

849


What is code verification?

921


What are delegates?

1177


Difference between debug.write and trace.write?

912


Is xml tags are case sensitive?

831


What is generic delegate in c#?

873


What is Event - Delegate?

1011


How to override a function in c#?

929