Java - Advanced Topics

  

Exception Hierarchy

You can catch multiple exceptions with single catch block as shown below;

try() {} with resource statements;

Throwing Exception: