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

Does c# support parameterized properties?

895


What is use of list in c#?

810


What is a callback c#?

961


Distinguish between array and arraylist in c#?

972


What is default parameter in c#?

922


Name the control which cannot be placed in mdi?

848


What does addressof operator do in background ?

966


Is c# and c sharp same?

813


How can you prevent escaping on backslashes in C# with string definitions?

1192


Are arrays immutable c#?

974


What do u mean by delegation of authority?

903


Define a class and an object?

933


Explain constructor in c#?

1257


What is difference between list and dictionary in c#?

825


Are arrays value types or reference types?

903