- 最後登錄
- 2022-4-17
- 在線時間
- 0 小時
- 註冊時間
- 2014-10-8
- 閱讀權限
- 20
- 精華
- 0
- UID
- 9117053
- 帖子
- 35
- 積分
- 17 點
- 潛水值
- 4980 米
|
請問一下,下列這題選項A跟D差別在那兒,答案為何是A不是D,謝謝
A method doSomething () that has no exception handling code is modified to trail a method that throws a checked exception. Which two modifications, made independently,
will allow the program to compile?
A. Catch the exception in the method doSomething().
B. Declare the exception to be thrown in the doSomething() method signature. ... |
|