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

I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.

0 Answers  


What method do you use to explicitly kill a users session? How?

0 Answers  


Explain me what is a design pattern and what is it for?

0 Answers  


Difference between assembly manifest & metadata assembly manifest

4 Answers   Ksb,


what is event inheritance and event delegation?

1 Answers  


Resource Files: How to use the resource files, how to know which language to use?

1 Answers  


What is the difference between custom control and web control?

2 Answers  


Please explain the difference between constants and read-only variables?

0 Answers  


How do you turn off cookies for one page in your site? Give an example.

0 Answers  


Can you configure a .NET Remoting object via XML file?

1 Answers  


What base class do all Web Forms inherit from?

1 Answers  


What does jit do?

0 Answers  


Categories