What is the difference b/w Readonly Variable and Constant
Variable?
Answer Posted / nishant vishwakarma
A const field can only be initialized at the declaration of the field. A readonly field can be initialized either at the declaration or in a constructor. Therefore, readonly fields can have different values depending on the constructor used. Also, while a const field is a compile-time constant, the readonly field can be used for runtime constants
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the advantages of migrating to vb.net?
What is the feature which is common to all .net languages?
I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com
How can we remove handlers at run time?
What do you mean by serialization and deserialization and it's use.
what is intermediate language?
What is the difference between convert.tostring and i.tostring method?
Define naming convention?
What is strong name in .net assembly?
What is a static class?
Why do we use ansi keyword?
how many server control present in .net
What is the difference between convert.tostring and .tostring() method?
What are all the parts of .net framework?
How many classes a dll can contain?