1.

State your understanding about Option Strict and Option Explicit.

Answer»

In GENERAL, .Net allows any data type to be implicitly converted. 

  • Option Strict is used to prevent the leakage of data during the conversions of data type, and it GUARANTEES the COMPILE-time notification of certain forms of conversions. 
  • Option Explicit is a keyword in a file that is used to exclusively declare each and every variable using declare keywords such as Dim, PRIVATE, Public, and Protected. An error occurs at compile time in the event of an undeclared variable name persisting.


Discussion

No Comment Found