(Total 22 questions) (Time spent 0:0)
1. Class Test
{
public static void main(String [] args) throws Exception
{
try{
test();
}catch (IOException e) {
System.out.println("IOException thrown");
}catch(Exception e)
{
System.out.println("Exception thrown");
}
}
public static void test()
{
throw new IOException();
}
}
What would be the result?
View Test Answer