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

What is the signature of a method?

927


What is a function c#?

966


Explain what are the steps for creating clr trigger?

898


Explain the difference between object type and dynamic type variables in c#?

937


How many bytes is an int c#?

883


Is c# an open source?

927


What is the difference between string and stringbuilder in c#?

958


How do I do implement a trace?

1093


What are the steps to create an assembly and add it to the gac?

888


What is a generic class?

969


Is array immutable in c#?

875


Why do we use abstract class in c#?

984


Is string a class in c#?

841


What is difference between a type and class?

1172


What is different between Implicit conversion and Explicit conversion in C#?

1058