Examveda

What will be the output of the following Java code snippet?
try (InputStream is = ...) 
{
    // do stuff with is...
} 
catch (IOException e) 
{
    // handle exception
}

A. Runtime Error

B. IOException

C. Compilation Error

D. Runs successfully

Answer: Option D


This Question Belongs to Java Program >> Session Management, JSP And API

Join The Discussion

Related Questions on Session Management, JSP and API