Visual Basic allows conversions of many data types to other data types. Data loss can occur when the value of one data type is converted to a data type with less precision or smaller capacity. A run-time error occurs if such a narrowing conversion fails. Option Strict ensures compile-time notification of these narrowing conversions so they can be avoided.
In addition to disallowing implicit narrowing conversions, Option Strict generates an error for late binding. An object is late bound when it is assigned to a variable that is declared to be of type Object.
Because Option Strict On provides strong typing, prevents unintended type conversions with data loss, disallows late binding, and improves performance, its use is strongly recommended.
What you can't do with Option Strict On, is accessing members of objects that are not declared as a specific object type. You must have a typed reference.
To store the vb.net for data into an xml file is called Serialization. To load data from xml file to vb.net form is called DeSerialization.
When compiling to the managed code , your source code is translated to microsoft intermediate language code( MSIL), which is cpu-indenpendent set of instructions that can be effectively converted to native code.
Late Binding: runtime binding
Early Binding: compile time binding as compilation is done before executing an application so it is called early binding.
A real world entity which has some specific attributes related to its characteristics and operations or methods associated with its attributes.
Select appropriate Question to view its more answers in this category of
Do you find any Answer incorrect or incomplete? Please e-mail us or
place your comment and mention the number of question or if you have correct answer then
open the appropriate question by clicking on question and then place your answer in comment
regarding particular question in this category "VB .Net Interview Questions and Answers" To ensure quality,
each change is checked by our team, before it enters the main website
database. If you desire so, the changes will be credited to your name.