Buy Questpond's video subscriptions on
huge discount
.
Online: 3199
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 ...
How many catch Statement can be associated with single try statement?
Posted by
Ddd
on 3/7/2011 | Category:
C# Interview questions
| Views: 4428 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
It can be 0 to as many.
try must be followed by catch or finally.
ex:
1)0 catch statement
try
{
}
finally
{
}
2) any number
try
{
}
catch
{
}
catch
{
}
finally
{
}
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
Can we use order by clause when defining a view?
Next > :
Can we change the dimensions of the array like ar ...
Comments or Responses
Posted by:
Kishork80
on: 3/8/2011 |
Points: 10
One interesting thing about the placement of the multiple catch blocks is that you place all specific exceptions that you want to catch first before placing generic ones. Because the Exception class is the base of all exception classes, it should always be placed last in a catch block so that any exception that is not caught in the previous catch blocks is always caught
Login to post response
More Interview Questions by Ddd
Can we change the dimensions of the array like arr[4,5] dynamically ?
What is the difference between Session["uname"]=TextBox1.Tex ...
How can we initialize Session variables in a user -defined class?
How can we get the path of the Temporary Folder?
How can you rename a file in C#?
Which of these terms defines the hiding of an object's details fro ...
What does a method's signature consist of?
Which of the following namespaces spans across multiple assemblies?
Latest Interview Questions
What are all the SQL Server JOBs involved in LogShipping - SQL Server
Difference Between Union and Union All
What is Constructor Chaining?
In what format does C# expect data to be streamed? 1. Simple binary ...
An instance of which of the following must be created to read files ac ...
If a^2+b^2=117 and ab=54 then find the value of a+b/a-b.
why can you prove that string is immutable datatype while StringBuilde ...
(36785)^2350 +(96387)^350 What is the Unit Digit in the above mentio ...
More ...