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 strong-typing versus weak-typing?

1125


How Session use Cookies in State Management?

1071


Is asp.net different from asp? If yes, explain how?

1035


Will the asp.net validators run in server side or client side?

1143


What are the asp.net security controls?

1167


Explain the difference between or and orelse?

993


Explain about Multi-Language integration?

1011


What are the new web part controls in asp.net 2.0 ?

1041


Explain different types of validators in asp.net?

1009


What are HTTP handlers in ASP.NET?

1101


What is the use of asp.net web api?

1096


What are the steps involved to fill a dataset?

1023


How can we create a website?

950


Name the two properties are on every validation control?

997


What is the difference between user control an custom control?

1117