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"); } } }
Correct Answer: -try-finally
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions