Page 1 of 1

About Question enthuware.ocpjp.v8.2.1090 :

Posted: Mon Mar 14, 2016 9:14 am
by lepi_dasa
This is WRONG.

You are saying that options 2 and 3 are VALID but option 1 is VALID as well!

Option 1:

DataOutputStream dos = new DataOutputStream(os);
dos.write(1);
A file of size 4 bytes will be created.

No! A file of size 1 byte will be created!

I am aware that you are going to change you question/answer now and that my response (after you fix your quersion/answer) will look stupid :)

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

Posted: Mon Mar 14, 2016 9:27 am
by admin
lepi_dasa wrote:This is WRONG.

You are saying that options 2 and 3 are VALID but option 1 is VALID as well!

Option 1:

DataOutputStream dos = new DataOutputStream(os);
dos.write(1);
A file of size 4 bytes will be created.

No! A file of size 1 byte will be created!
Of course a file of size 1 byte will be created. The detailed explanation provided with the option says the same thing. That is why this option is wrong. This option says a file of size 4 bytes will be created. Why do you think it is correct?
lepi_dasa wrote: I am aware that you are going to change you question/answer now and that my response (after you fix your quersion/answer) will look stupid :)
Let me assure you that we don't do such things. If a user reports a mistake in our material we acknowledge it and fix it as soon as possible and release an update so that other users will get to see the corrected material.

thank you,
Paul.