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 main differnce between const,readonly and static

Answer Posted / komilla shaheen

const is the keyword where we can intialize the variable
with some value which is constant throughout the program it
cannot be changed.
static is the keyword which is intialized at complile time
and had to change at compile time only.
readonly is for the varible which is readonly cant be
changed.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Final Class in C#

1033


What does immutable mean in c#?

960


What is difference between var dynamic and object in c#?

943


What is the difference between iqueryable and ienumerable?

972


What does question mark mean in c#?

990


Why do we use class in c#?

930


What is the difference between int and int in c#?

1033


How to exclude a property from xml serialization?

1018


Why would you use a class property in c#?

918


Why do we use delegates?

863


What exception can an overridden method throw in comparison with the method it is overriding?

877


What is the difference between internal and private in c#?

942


Are objects passed by reference in c#?

997


What is xml document how do you open it?

983


Can we create instance of private class in c#?

908