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 / kishore maddineni

all above answers are correct.But there is another point.

readonly variable can be assigned at declaration or at run
time which is must be in constructor. Readonly value can't
be modified.

Constant variable must be assigned at the time of
declaration only ,which is can't be modified.

Is This Answer Correct ?    36 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override static class in c#?

952


What is data quality assurance?

952


What is difference between method and function in c#?

963


What is a protected class c#?

940


What is transparent caching with aop ?

1180


Difference between StackPanel and RelativePanel ?

1067


How a two-dimensional array declared in C#?

1021


What is the class in c#?

925


Can you inherit multiple abstract classes in c#?

977


Explain the process of Serialization?

1052


Can we inherit class that contains only one private constructor?

1012


What is the difference between field and property in c#?

991


What is difference between constants and read-only?

1032


What is verbatim string?

980


What is namespace give the example?

952