A Admin • 828.03K Points Coach Q. Which is the correct syntax to define a method that throws IOException? (A) void method() throw IOException {} (B) void method() throws IOException {} (C) throws IOException void method() {} (D) throw IOException void method() {} Correct Answer - Option(B) Views: 9 Filed under category Java Hashtags: Java Exceptions Share Manage Tags
Discusssion
Login to discuss.