2 ms·
Huh, I have seen enough catch blocks in Java code at work which are totally empty. How is that better than ignoring error?
by geodel 6y ago
Huh, I have seen enough catch blocks in Java code at work which are totally empty. How is that better than ignoring error?
- apta 6y agoBecause it's an explicit opt-in, as opposed to accidental opt out. And static checking can warn you about empty catch blocks.