If all code is written in a try block and write a catch
block with Exception type Exception .In that scenario will
all the exceptions catched by that catch block? or any
exceptions which will not be caught?
Answer Posted / pompana gouda
Yes and No is the answer...
Yes because, Any type of exception will be caught by general
catch block.
No because,
If there are 3 lines which generate 3 different exceptions,
Then only first exception is caught in the general exception
catch block. If first line is not throwing exception then
whatever the line which throws exception will be caught...
Not all exceptions are handled by single catch statement.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Is xml tags are case sensitive?
What are the types of methods in c#?
What is addressof operator?
What is console read in c#?
What are delegate methods?
What does string format do?
What is the function of .IsDescendent()?
What happens if you add duplicate elements to a set?
what are the Disadvantages of vb
Why do we need indexer in c#?
How big is int16?
What are the examples of data types?
What is the syntax for calling an overloaded constructor within a constructor?
Explain about Threading Types.
What is expression tree in c#?