MCQs > IT & Programming > Java > Output of the following code? class ExceptionTest{ public static void main(String[] args){ try{ System.out.print('1'); throw new Exception(); } catch(Exception ex){ System.out.print('2'); } finally{ System.out.print('3'); } } }

Java MCQs

What will be the output of the following code? class ExceptionTest{ public static void main(String[] args){ try{ System.out.print("1"); throw new Exception(); } catch(Exception ex){ System.out.print("2"); } finally{ System.out.print("3"); } } }

Answer

Correct Answer: 123

Explanation:

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

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it