VB.Net Interview Question and Answers

26. What is the main purpose of Garbage collector?
  The main purpose of Garbage collector isto destroy the variables and other objects that were used by the application hence releasing the memory blocked by them.
 
Pavani, says Jan 28,2015
CLR automatically manages memory thus eliminating memory leaks. When objects are not referred , GC automatically releases those memories thus providing efficient memory management.
Your Name Your Email-ID
Your Answer
27. What is an Interface?
  An interface has no implementation; it only has the signature or in other words, just the definition of the methods without the body.
 
Your Name Your Email-ID
Your Answer
28. What is the difference between an EXE and a DLL?
  Dll is an In-Process Component whereas EXE is an OUt-Process Component.Exe is for single use whereas you can use Dll for multiple use.
Exe can be started as standalone where dll cannot be.
 
Your Name Your Email-ID
Your Answer
29. What is the GAC?
  Each computer where the common language runtime is installed has a machine-wide code cache called the global assembly cache. The global assembly cache stores assemblies that are to be shared by several applications on the computer. This area is typically the folder under windows or winnt in the machine.
 
Your Name Your Email-ID
Your Answer
30. How does CAS work?
  The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set.
 
Your Name Your Email-ID
Your Answer