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

Difference Between ReadOnly and Constant Variable in
compile time and Run Time.

Answer Posted / kamlesh sharma

readonly variables are can be initilized at compile time
but we can assign values to readonly varialble at once
through functions or constructors

but in case of constant variables once assign a value we
can't change value and must assign value to constant
variables at the time of declarition

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ascx?

971


Can you explain the importance of finalize method in .net?

1045


Explain about the .NET framework?

1073


Explain the advantages of caching?

1013


what is DLL Hell and how it is solved in .NET? please explain clearly??

2387


What is a swagger in web api?

1066


List the advantages and disadvantages of user control an custom control?

973


What are custom controls?

956


Explain what is event bubbling?

1022


What are the main requirements for caching?

1051


Fetch one page value to another page without using state-managment ?

912


What is form submit?

968


Differentiate strong typing and weak typing

955


Describe a bubbled event and how it is used ?

1141


How you will manage the state of ASP.NET controls?

1068