MCQs > IT & Programming > Java > Output of the given console application? public class Test31 { public static void main(String[] args) { test(); } public static void test() { try { System.out.print('-try'); return; } catch (Exception e) { System.out.print('-catch'); } finally { System.out.print('-finally'); } } }

Java MCQs

What is the output of the given console application? public class Test31 { public static void main(String[] args) { test(); } public static void test() { try { System.out.print("-try"); return; } catch (Exception e) { System.out.print("-catch"); } finally { System.out.print("-finally"); } } }

Answer

Correct Answer: -try-finally

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

More Java MCQ Questions

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it