VB.NET INTERVIEW QUESTION & ANSWERS
96. |
What is the difference between the Debug class and Trace class? |
|
Use Debug class for debug builds, use Trace class for both debug and release builds. |
97. |
What is Shadowing? |
|
When the method is defined as Final/sealed in base class and not override able and we need to provide different implementation for the same. This process is known as shadowing, uses shadows/new keyword. |
98. |
What is the difference between reference type and value type? |
|
- Reference Type : Reference types are allocated on the managed CLR heap, just like object types. A data type that is stored as a reference to the value's location. Reference types can be self-describing types, pointer types, or interface types.
- Value Type : Value types are allocated on the stack just like primitive types in VBScript, VB6 and C/C++. Value types are not instantiated using new go out of scope when the function they are defined within returns.
|
99. |
What is a monitor objects? |
|
Monitor objects are used to ensure that a block of code runs without being interrupted by code running on other threads . |
100. |
What is reflection? |
|
All .NET compilers produce metadata about the types defined in the modules they produce. This metadata is packaged along with the module (modules in turn are packaged together in assemblies), and can be accessed by a mechanism called reflection. |