The question is inspired by this question. There, everyone advises me to convert the checked exception to an uncheckable one.
And my question is this: why did the Java developers come up with such a term as a проверяемое исключение ? What is the profit from this? To know which method can throw an exception, and which not? So any method can throw out any NullPointerException that you still need to catch and handle? So how does a NullPointerException differ from an IOException which must be declared in throws ? There is no such term in any language known to me.
The only explanation I can think of is that when a checked exception occurs, the object is in a certain stipulated state, and if unchecked, the object can be damaged.
throws. - ߊߚߤߘ