C# Exception Handling Interview Questions and Answers - 1
Errors are mistakes that can make a program go wrong.
It is common to make mistakes while developing as well as typing a program.
An error may produce an incorrect output or may terminate the execution of the program.
What is compile time error?
These kinds of errors are occurred during the program typing.
So the C# compiler does not create the “.CS” file.
It also list out the error with the details.
Can multiple catch blocks be executed?
No, once the proper catch code fires off, the control is transferred to the finally block (if there are any), and then whatever follows the finally block.
What is runtime error?
The program may compile successfully and creates executable version but the program produce wrong results.
These are due to the problem called runtime error.
What is the use of finally statement?
The set of statements that will execute when a try/catch block is left.
To specify a block of code to execute when a try/catch block is exited, include a finally block at the end of a try/catch sequence.
SAP SD Interview Questions and Answers More
Top 1000+ Bank Exams Question Papers with Answers Pdf More
1000+ SBI Computer Awareness Study Material More
Top 1000+ Preposition Questions for SSC Exams More
Preposition Quiz Questions and Answers for Bank Exams More
Physics Gk Questions and Answers 2020-2021 More
Top 20+ LINQ Interview Questions and Answers More
1000+ Computer Aptitude Questions for Bank Exams Pdf More
Data Structure Interview Questions for Java Developers More
Top 1000+ Puzzle Quiz for Bank Exams More