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
How does vb.net achieve polymorphism?
Explain about the feature anonymous type?
What are the advantages of an assembly?
Explain the advantages of migrating to vb.net?
How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?
Observations between vb.net and vc#.net?
How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?
What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?
Can you please explain the difference between system.string and system.stringbuilder classes?
thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net
Which namespace are used for accessing the data?
What is the ruby interface generator?
What is option strict?
Explain the observations between vb.net and vc#.net?
What is meant by jagged arrays?