ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net General
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is exception handling?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is exception handling?
Answer
# 1
When an exception occurs, the system searches for the 
nearest catch clause that can handle the exception, as 
determined by the run-time type of the exception. First, 
the current method is searched for a lexically enclosing 
try statement, and the associated catch clauses of the try 
statement are considered in order. If that fails, the 
method that called the current method is searched for a 
lexically enclosing try statement that encloses the point 
of the call to the current method. This search continues 
until a catch clause is found that can handle the current 
exception, by naming an exception class that is of the same 
class, or a base class, of the run-time type of the 
exception being thrown. A catch clause that doesn?t name an 
exception class can handle any exception. Once a matching 
catch clause is found, the system prepares to transfer 
control to the first statement of the catch clause. Before 
execution of the catch clause begins, the system first 
executes, in order, any finally clauses that were 
associated withtry statements more nested that than the one 
that caught the exception. Exceptions that occur during 
destructor execution are worthspecial mention. If an 
exception occurs during destructor execution, and that 
exception is not caught, then the execution of that 
destructor is terminated and the destructor of the base 
class (if any) is called. If there is no base class (as in 
the case of the object type) or if there is no base class 
destructor, then the exception is discarded.
 
Is This Answer Correct ?    2 Yes 0 No
Guest
 

 
 
 
Other Dot Net General Interview Questions
 
  Question Asked @ Answers
 
When would you use .NET Remoting and when Web services?  1
What is Assembly manifest? what all details the assembly manifest will contain. Ksb2
What is meant fulltrust?  1
What is the Difference between directcast and ctype? Wipro3
Is string a value type or a reference type?  1
What is different between Web User Control and Web Custom Control?  1
What is a strategy pattern? Implement it.  1
Can we Classic ASP,.Net 1.0, .Net 1.x and .Net 2.0 installed on the same system? Value-Labs1
What are the two kinds of properties. Wipro2
What is the Difference between imperative and interrogative code?  1
Readonly vs. const? Hewitt2
What is Active Directory? What is the namespace used to access the Microsoft Active Directories?  3
What is a system lock? Wipro2
Why DLL files are needed. & how They are Created in DOTNET?  1
What are the drawbacks for Model-View-Controller Architecture?  1
What is CCW (COM Callable Wrapper)  1
If we want to write a Windows service that cannot be paused, only started and stopped. How to accomplish that?  1
How to find methods of a assembly file (not using ILDASM) Reflection  1
How to send the Mail in C# using ASP.Net ? And my Answer is as follows ?  3
What is JIT and how is works?  1
 
For more Dot Net General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com