We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
throw和throws的区别?
千锋教育
1. throw作用在方法内,表示抛出具体异常,由方法体内的语句处理;一定抛出了异常。
2. throws作用在方法的声明上,表示抛出异常,由调用者来进行异常处理;可能出现异常,不一定会发生异常;