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 / raju

1.We can assign value to readonly field, only in
constructor or while declare the variable.But in case of
const we should assign a value while declare.
2.const=static readonly

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between static class and singleton instance?

1023


What is meant by generics in c#?

921


What is the adv of using System.Text.StringBuilder over System.String?

973


What is the example of predicate?

921


What is the process of delegation?

981


What is a private method in c#?

1045


Is lazy thread safe c#?

881


What is asp net c# corner?

1294


what is a structure in c#

1687


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

2087


What is the difference between overriding and overloading in systemverilog?

994


How do I format in c#?

868


What is difference between abstract class and interface in c#?

952


Do extension methods have to be static?

1027


Write a sample code to write the contents to text file in c#?

942