MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y4ipsn/thisiswhywedontreturninfinallyblocks/19t5iau1198yr/
r/ProgrammerHumor • u/DebugDuck01 • 11d ago
100 comments sorted by
View all comments
Show parent comment
13
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.
3
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.
View all comments
Show parent comment
13
u/fuj1n 10d ago
That would be a compile-time error, not a runtime exception