Buy Questpond's video subscriptions on
huge discount
.
Online: 2140
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 ...
In this Sample Code which catch block will be executed?
try
{
int j=10;
try
{
int i=10;
j=j-i;
j=i/j;
}
catch(Exception ex)
{
throw ex;
}
}
catch(Exception ex)
{
throw ex;
}
Posted by
Lakhangarg
on 9/12/2009 | Category:
C# Interview questions
| Views: 18852
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Select from following answers:
First Catch Block
Second Catch Block
Both
None
All Above
Show Correct Answer
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
Can an ASPX file contain more than one form marked ...
Next > :
A try block having 4 catch block will fire all cat ...
Comments or Responses
Posted by:
Jasc
on: 10/13/2011 |
Points: 10
Please Correct the Answer, the Second Catch Block will be executed.
Posted by:
Eitkin
on: 9/19/2015 |
Points: 10
This is not a correctly formed question. The answer is wrong. Compiler will complain that of same Exception type in more than one catch blocks.
Login to post response
More Interview Questions by Lakhangarg
Which should be used to redirect on next page in the same server?
What is the name of base class for .NET
Is it Possible to create more than one machine config file.
Which Function is used to count more than two billion rows in a table?
Is finally block executed if there is no exception?
What is the Extension of web Service ?
What is Size Limit for Cookies data?
What is the Purpose of Server.MapPth?
Latest Interview Questions
A try block having 4 catch block will fire all catch block or not?
What are three test cases you should do while unit testing?
What debugging tools come with the .NET Framework SDK?
Response.Redirect() can be used to redirect from one page to another p ...
Is overloading possible in web services?
Can we use "Print" statement in function?
Can we use NEWID(), or RAND() in function?
What is Difference between Callbacks and Postback in ASP.NET?
More ...