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 readonly and const

Answer Posted / porchelvi.a

Constant:
--------
we have to initialize at the declaration itself
we could not change the value of constant variable.

Read only:
----------
we can not initialize the Read only variable during
declaration.we can initialize it in constructor only.after
that we could not change the value.Read noly is instance
based variable.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parallel foreach c#?

941


Is c# and .net same?

857


Why c# is called c sharp?

891


What is difference between static and constant variable?

984


Difference between debug.write and trace.write?

962


How does aspect oriented programming work?

949


Explain About sn.exe

978


What are the Types of values mode can hold session state in web.config

994


What is static class in C#?

1025


What is use of FormBoarderStyle Propertie

927


What are escape sequences explain with example?

955


Can class be protected in c#?

918


Is as operator in c#?

873


How does dictionary work in c#?

874


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

920