摘要: throw throw出现在函数体中,它的作用就是一定触发一种异常,一定要写在try...catch里 //throw new 错误类型("出错啦") throw new NegativeArraySizeException("出错啦") ; throws throws出现在函数头,它表示一种可能会 阅读全文
posted @ 2021-05-27 18:00 ZosMa~ 阅读(67) 评论(0) 推荐(0)