Hacker News new | ask | show | jobs
by vips7L 16 days ago
You can declare your runtime exceptions too. The compiler won’t enforce you to catch them though.

    void fn() throws IllegalStateException