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

Java MCQs

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

Answer

Correct Answer: Code will not compile

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