About Question enthuware.ocpjp.v11.2.3416 :

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

Moderator: admin

Post Reply
bouke.nijhuis
Posts: 2
Joined: Wed Apr 07, 2021 1:14 pm
Contact:

About Question enthuware.ocpjp.v11.2.3416 :

Post by bouke.nijhuis »

There is a correct option that says:

Check the number of lines in the file referred to by listOfFilesFile at //2 before proceeding to open the files.

I think checking is not enough, you should also act on this information. So IMHO this answer is a little vague.

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

Re: About Question enthuware.ocpjp.v11.2.3416 :

Post by admin »

You are right. Updated the option to make it clear.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

marcioggs
Posts: 10
Joined: Sat Aug 31, 2019 3:19 am
Contact:

Re: About Question enthuware.ocpjp.v11.2.3416 :

Post by marcioggs »

According to the comment on option 4, can we assume that both (2 and 3) or (3 and 4) are correct?

Although it would be good to close an open file as soon as its use is over, but if the total number of open files is limited using option 2, the given code is fine.

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

Re: About Question enthuware.ocpjp.v11.2.3416 :

Post by admin »

No, 3 + 4 is not correct because as the comment to option 4 says, it is good to do but not helpful here.
If you like our products and services, please help us by posting your review here.

marcioggs
Posts: 10
Joined: Sat Aug 31, 2019 3:19 am
Contact:

Re: About Question enthuware.ocpjp.v11.2.3416 :

Post by marcioggs »

So maybe it would be better to rephrase the comment since it's not helpful regardless of if option 2 is chosen.

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

Re: About Question enthuware.ocpjp.v11.2.3416 :

Post by admin »

Yes, that's what the comment to option 4 says, "Although it would be good to close an open file as soon as its use is over, but if the total number of open files is limited using option 2, the given code is fine." This clearly implies that 4 is not useful.
Also, you asked about (2 and 3) or (3 and 4). Not 2 + 4.

2+4 is not correct because you need 2 as well as 3.
If you like our products and services, please help us by posting your review here.

61d14837
Posts: 13
Joined: Tue Jul 21, 2020 1:39 pm
Contact:

Re: About Question enthuware.ocpjp.v11.2.3416 :

Post by 61d14837 »

How do you
make sure that the number of lines in the file referred to by listOfFilesFile at //2 is within acceptable limit
without opening it?

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

Re: About Question enthuware.ocpjp.v11.2.3416 :

Post by admin »

There could be several ways depending on OS, depending on the environment in which the program is running, depending on the resources available. May be it is a configurable limit and the program should compare with that limit.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests