About Question enthuware.ocpjp.v8.2.1283 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
azazello
Posts: 2
Joined: Tue Apr 19, 2016 1:54 pm
Contact:

About Question enthuware.ocpjp.v8.2.1283 :

Post 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?

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1283 :

Post 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.

azazello
Posts: 2
Joined: Tue Apr 19, 2016 1:54 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1283 :

Post 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.
:oops: sorry, I missed "not" , need to work less

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 12 guests