【根据java编码标准进行异常处理】教程文章相关的互联网学习教程文章

根据java编码标准进行异常处理【代码】

在异常处理的情况下,我有一个关于java标准的查询. 代码段:public String methodXXX(){ //This method may throw IllegalArgumentexception and arrayoutofboundaryException. }在这种情况下,哪个是良好的编码标准,请告诉我原因情况1:public String methodXXX() throw IllegalArgumentexception,ArrayoutofBoundaryException.{ //This method may throw IllegalArgumentexception and arrayoutofboundaryException. }案例2:publi...