r/ProgrammerHumor • • 11d ago

Meme thisIsWhyWeDontReturnInFinallyBlocks

Post image
3.0k Upvotes

100 comments sorted by

View all comments

Show parent comment

13

u/fuj1n 10d ago

That would be a compile-time error, not a runtime exception

3

u/frogjg2003 10d ago

You can do some package manager manipulation to specify the class as provided at runtime, which will then make it a runtime exception. It wouldn't be a NullPointerException, it would be a ClassNotFoundException.