Option statements that are supported in VB.NET

Option Explicit:- By default, Option Explicit is on for VB.NET projects. It's a good programming practice to set Option Explicit on because it helps developers avoid implicitly declaring variables, and thus write better code.This forces developers to explicitly declare variables utilizing the Dim keyword and specifying the datatype for the variable.

Option Compare:-By default,the Option Compare is Binary;however,you can set Option Compare to Text in

stead.

Option Strict:- Option Strict Off is the default mode for the code in VB.NET; however, it's preferable to write code with Option Strict on. Option Strict On prevents implicit type conversions by the compiler. It's also a safer way to develop code, which is why most developers prefer it.