Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 279 Bytes

main.md

File metadata and controls

12 lines (9 loc) · 279 Bytes

main

The main method can be declared to throw any kind of checked exception.

It is assumed that if an exception makes it all the way there that the way to handle it is crash the program.

void main() throws Exception {
    throw new Exception("crash");
}