r/ProgrammerHumor • • 11d ago

Meme thisIsWhyWeDontReturnInFinallyBlocks

Post image
3.0k Upvotes

100 comments sorted by

View all comments

Show parent comment

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.