Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Can we execute multiple catch blocks in C#?
Home
C Sharp
Can we execute multiple catch blocks in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Can we execute multiple catch blocks in C#?
multiple-catch-blocks
catch-block-c#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
No. Once any exception is occurred it executes specific exception catch block and the control comes out.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Can multiple catch blocks be executed?
asked
Mar 5, 2020
in
C Sharp
by
JackTerrance
0
votes
Q: Can we have only “try” block without “catch” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
try-c#
c#-try
c#-catch
catch-c#
0
votes
Q: A single try block and multiple catch blocks can co-exist in a Java Program. Explain.
asked
Dec 16, 2020
in
JAVA
by
SakshiSharma
#catch-blocks
#java-program
Java-questions-answers
0
votes
Q: Whats the C# equivalent of C++ catch ( ), which was a catch-all statement for any possible exception?
asked
Mar 5, 2020
in
C Sharp
by
JackTerrance
0
votes
Q: Can we use delegates for asynchronous method calls in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
c#-delegates
delegates
0
votes
Q: How we can sort the array elements in descending order in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
sort-array
array-sort
0
votes
Q: Can we override private virtual method in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
private-virtual-method
private-virtual
0
votes
Q: Can we use “this” inside a static method in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
this-c#
c#-this
0
votes
Q: In try block if we add return statement whether finally block is executed in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
c#
0
votes
Q: Do we get error while executing “finally” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
finally-c#
c#-finally
...