Buy Questpond's video subscriptions on
huge discount
.
Online: 1942
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
C#
>
Loading ...
Can multiple catch blocks that correspond to a single try block executed ?
try
{
///some error code
}
catch(Exception1 ex)
{
///some code
}
catch(Exception2 ex)
{
///some code
}
catch(Exception3 ex)
{
///some code
}
catch(Exception4 ex)
{
///some code
}
Posted by
Akiii
on 3/3/2014 | Category:
C# Interview questions
| Views: 5184 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
No, It is not possible. Whenever there is an error, it will immediately look for the catch block assuming it is there. It cannot go back to the try block and check for the second exception.
Asked In:
Some Interviews |
Alert Moderator
Bookmark It
< Previous :
Can we have multiple primary key on the table?
Next > :
How can you get the extension from a File upload c ...
Comments or Responses
Login to post response
More Interview Questions by Akiii
How can you get the extension from a File upload control ?
GC.SuppressFinalize Method means "Do not call the Garbage Collect ...
Attributes can be applied to ?
Controls and View State are not fully loaded in the Page_Load event. ...
Page_Init event occurs only when the first time the page is started. ...
What is a JavaScript Escape Characters ?
Give an example of JavaScript Print ?
Write a query to get the list of all employees whose name is "tes ...
Latest Interview Questions
How to perform sum of digits from 1 to n in javascript?
How can a user assign a property dynamically in javascript and generat ...
How to display the date and time when the page gets loaded?
How to declare an array?
Explain the concept Data Hiding?
Explain Encapsulation?
How can you define polymorphism?
How can we achieve overloading concept in WCF?
More ...