lets program going variety of math computations , want know available exceptions possible capture see if applicable.
or, program doing lot of file i/o , other things , want capture specific exceptions instead of capturing exception.
maybe may want know if 1 application applicable in scenario being coded.
what recommended way go researching exceptions available captured when generating code specific activity?
using ide intellij or eclipse let know of exceptions library code using throws, depending on it's javadoc(like filenotfoundexception) , majority of times, these exceptions should worry about.
other exceptions divide zero, null pointer exception depend on code writing. example if getting object different class, might want check if null before doing operations on it. if dividing something, k/x , should have idea whether x ever going 0 or not.
Comments
Post a Comment