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 have only “try” block without “catch” block in C#?
Home
C Sharp
Can we have only “try” block without “catch” block in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Can we have only “try” block without “catch” block in C#?
try-c#
c#-try
c#-catch
catch-c#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
Yes we can have only try block without catch block but we have to have finally block.
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: 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: Can we execute multiple catch blocks in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
multiple-catch-blocks
catch-block-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: What is the difference between try catch block and error boundaries ReactJS, Explain with example?
asked
Nov 2, 2023
in
ReactJS
by
AdilsonLima
reactjs-interview-questions-answers
0
votes
Q: Go programming has a try…catch block?
asked
Jul 13, 2022
in
Go Semantics Supplemental
by
john ganales
go-programming
semantics
0
votes
Q: Is it necessary that each try block must be followed by a catch block?
asked
May 3, 2021
in
JAVA
by
Robindeniel
#catch-block
java
Java-questions-answers
0
votes
Q: Can finally block be used without a catch?
asked
May 3, 2021
in
JAVA
by
Robindeniel
#finally-block
try-catch
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: Do we get error while executing “finally” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
finally-c#
c#-finally
0
votes
Q: Why to use “finally” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
finally-c#
c#-finally
...