MCQs > IT & Programming > C# > Which of the following statements is true regarding the code samples below? try {   // code goes here } catch (Exception e) {   throw e; } B: try {   // code goes here } catch (Exception e) {  throw;}

C# MCQs

Which of the following statements is true regarding the code samples below?

A:

try {

  // code goes here

} catch (Exception e) {

  throw e;

}

B:

try {

  // code goes here

} catch (Exception e) {

  throw;

}

Answer

Correct Answer: A will lose the call stack trace information. B will preserve the call stack trace information.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it