VB.NET INTERVIEW QUESTION & ANSWERS
76. |
What is the difference between System exceptions and Application exceptions? |
|
Exceptions can be generated programmatically or can be generated by system. Application Exception serves as the base class for all applicationspecific exception classes. It derives from Exception but does not provide any extended
functionality. You should derive your custom application exceptions from Application Exception. Application exception is used when we want to define user-defined exception, while system exception is all that is defined by .NET. |
77. |
Can we force garbage collector to run? |
|
System.GC.Collect () |
78. |
What are the assembly entry points? |
|
An assembly can have only one entry point from DllMain, WinMain or Main. |
79. |
What is the difference between dataset.clone and dataset.copy? |
|
- Dataset.clone copies just the structure of dataset (including all the datatables, schemas, relations and constraints.); however it doesn't copy the data.
- On the other hand Dataset.copy, copies both the dataset structure and the data.
|
80. |
Why is string called immutable data type? |
|
A string object is said to be immutable (read-only), because a value once assigned to a string object cannot be changed after the string object has been created. When the value in the string object is modified, a new string object is created with a new value assigned to the string object; therefore, keeping the old string in memory for garbage collector to be disposed. |