VB.Net Interview Question and Answers
86. |
What does assert() method do? |
|
In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true. |
|
|
87. |
Why string are called Immutable data Type? |
|
The memory representation of string is an Array of Characters, So on re-assigning the new array of Char is formed & the start address is changed . Thus keeping the Old string in Memory for Garbage Collector to be disposed. |
|
|
88. |
What is the difference between Convert.toString and .toString() method? |
|
Convert.toString handles null while i.tostring() does not handles null. |
|
|
89. |
How many types of Transactions are there in COM + .NET ? |
|
There are 5 transactions types that can be used with COM+.- Disabled
- Not Supported
- Supported
- Required
- Required New
|
|
|
90. |
What is a DataTable? |
|
A DataTable is a class in .NET Framework and in simple words a DataTable object represents a table from a database. |
|
|