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...


Readonly vs. const?

Answers were Sorted based on User's Feedback



Readonly vs. const?..

Answer / pavan

both of them does the same work these value cannot be
changed
but with a samll difference
using const we can assign a value before compile time
but using readonly we can assign value to the varible ones
in runtime

Is This Answer Correct ?    14 Yes 0 No

Readonly vs. const?..

Answer / j_baghla

Both are used for constant values but in readonly variable
we can assign the value thru expression but we can't assign
value to constant variable thru expression.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Dot Net General Interview Questions

what are the Goals of the UIP Application Block?

1 Answers  


What's wrong with a line like this? Datetime.parse(mystring);

0 Answers  


What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?

0 Answers   TCS,


Which property is used in the email to send the content as HTML

1 Answers  


Differences between namespace, class, assembly?

0 Answers  


Explain what is the difference between encrypting a password and applying a hashing?

0 Answers  


What is the raise event used for?

4 Answers   Wipro,


How to Exchange data between Webservices

2 Answers  


Explain how does assembly versioning work?

0 Answers  


What's the problem with .net generics?

0 Answers  


Using com component in .net?

0 Answers  


What are the important components of .net?

0 Answers  


Categories