• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

VB.Net Interview Questions Answers

Question - 1 : - What is DataType conversion in VB.NET ?

Answer - 1 : - Convert one variable type to another one is called datatype conversion we can also caleed this casting in VB.NET some automatically conversion is also there. Cbool CByte CChar Cdate CDec CDbl CInt CLng CObj CShort CSng CStr CType Asc.

Question - 2 : - How is a property designated as read-only?

Answer - 2 : -   In VB.NET: Private mPropertyName as DataType Public ReadOnly Property PropertyName() As DataType     Get Return mPropertyName     End Get End Property

Question - 3 : -  What's the difference between const and readonly?

Answer - 3 : -   The readonly keyword is different from the const keyword. 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 as in the following example: public static readonly uint l1 = (uint) DateTime.Now.Ticks;

Question - 4 : - How do you convert a string into an integer in .NET? Previous Next

Computer Contributors

Rajeev Katiyar
Yes Baroda

Share your email for latest updates


Our partners