Which of the following is the correct syntax for a try-catch block in Java?
try { ... } catch (Exception e) { ... }
try (Exception e) { ... } catch { ... }
try { ... } finally { ... }
catch (Exception e) { ... } finally { ... }

Computer Science Exercises are loading ...