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 readonly and const

Answer Posted / porchelvi.a

Constant:
--------
we have to initialize at the declaration itself
we could not change the value of constant variable.

Read only:
----------
we can not initialize the Read only variable during
declaration.we can initialize it in constructor only.after
that we could not change the value.Read noly is instance
based variable.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tpl in c#?

892


What is the default scope of a class in c#?

946


What is tochararray in c#?

944


How to handle exceptions that are raised in a component?

1085


List down the reason behind the usage of c# language.

1307


how to stored and retrive video in Sql server using asp.net c#......?

990


What is stringbuilder c#?

956


Explain About .NET Framework

912


What is the use of the dispose method in C# ?

970


How does one compare strings in c#?

1011


How many types of inheritance are there in c#?

910


If you want to write your own dot net language, what steps you will u take care?

982


What is different about switch statements in c#?

870


Why do we use abstraction in c#?

903


What is difference between Trace and Debug

1084