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 is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

0 Answers  


What is a delegate in .NET?

1 Answers  


Write the .net syntax for 'for loop'?

0 Answers  


can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?

0 Answers  


What is msil, il?

0 Answers  


What are asp.net authentication providers and iis security?

0 Answers  


Is .net front end or backend?

0 Answers  


Describe the start-up process for a Windows service.

1 Answers  


What is assemblies in .net?

0 Answers  


What is the use of ErrorProvider Control in .NET?

2 Answers  


What are the Project related questions generaly asked in the interview. Mail to: ana_net1@yahoo.com

2 Answers   TCS,


Example from .net. Integer & struct are value types or reference types in .net?

0 Answers  


Categories