A Admin • 830.13K 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: 16 Filed under category Java Hashtags: Java Exceptions Share Manage Tags
Discusssion
Login to discuss.