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

i want the csharp questions&answeres

1981


What is platform independence"?

953


Can a static class have a constructor c#?

923


Describe the ways of cleaning up objects in c#.

914


What is the diff between System.String and System.Text.StringBuilder classes?

1021


What is an abstract class c#?

906


What is using keyword?

922


What is web forms in c#?

938


What is difference between dictionary and list in c#?

891


Can you inherit from a sealed class?

927


Can you inherit from multiple classes in c#?

889


Why do I get a syntax error when trying to declare a variable called checked?

1022


Can you access a hidden base class method in the derived class?

931


What does firstordefault mean in c#?

961


Write one code example for compile time binding and one for run time binding? What is early/late binding?

1036