JAVA Programming :: Exception Handling - Discussion
Home > JAVA Programming > Exception Handling > MCQs Questions Discussion
5 / 4
Choose the correct option.
Which of these is a legal definition of a method named m assuming it throws IOException, and returns voi Also assume that the method does not take any arguments. Select the one correct answer.
Avoid m() throws IOException{}
Bvoid m() throw IOException{}
Cvoid m(void) throws IOException{}
Dm() throws IOException{}
Evoid m() {} throws IOException
Answer: Option (Login/Signup)
Show Explanation