MCQs > IT & Programming > Java > Which statement about the given code is true? import java.io.IOException; public class Test110 { public static void main(String[] args) { throwEx(new IOException('unchecked')); } static void throwEx(Exception e) { Test110. _throw(e); } static void _throw(Exception e) throws E { throw (E) e; } }

Java MCQs

Which statement about the given code is true? import java.io.IOException; public class 
Test110 { public static void main(String[] args) { throwEx(new
IOException("unchecked")); } static void throwEx(Exception e) {
Test110.<RuntimeException> _throw(e); } static <E extends Exception> void
_throw(Exception e) throws E { throw (E) e; } }

Answer

Correct Answer: Exception instance of IOException is created as unchecked in the main() method.

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