Page 1 of 1
About Question enthuware.ocpjp.v8.2.1283 :
Posted: Thu May 26, 2016 8:03 am
by azazello
Therefore, calls to these methods need not be wrapped in a try block or declared in the throws clause of the calling method.
I don't understand, why i must do this? Can you explain?
Re: About Question enthuware.ocpjp.v8.2.1283 :
Posted: Thu May 26, 2016 10:42 am
by admin
I am not sure I understand your question. It doesn't say anywhere about what you must do. It says that since readLine and readPassword methods of Console do not declare any checked exceptions, you do not need to wrap the calls to these methods in a try/catch.
-Paul.
Re: About Question enthuware.ocpjp.v8.2.1283 :
Posted: Fri May 27, 2016 12:27 am
by azazello
admin wrote:I am not sure I understand your question. It doesn't say anywhere about what you must do. It says that since readLine and readPassword methods of Console do not declare any checked exceptions, you do not need to wrap the calls to these methods in a try/catch.
-Paul.

sorry, I missed "not" , need to work less