About Question enthuware.ocpjp.v7.2.1086 :

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

Moderator: admin

Post Reply
icepeanuts
Posts: 53
Joined: Thu Nov 22, 2012 12:01 am
Contact:

About Question enthuware.ocpjp.v7.2.1086 :

Post by icepeanuts »

Just one more question.

If the handles are of RandomAccessFile, fileName2 will end up with 200 bytes because it writes from the beginning of the fileName2, overwriting the first 100 bytes and leaving the rest untouched. Is it correct?

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

Re: About Question enthuware.ocpjp.v7.2.1086 :

Post by admin »

yes, that is correct.

bvrulez
Posts: 33
Joined: Sat Feb 15, 2020 12:44 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1086 :

Post by bvrulez »

I am curious to what the question refers to. I don't understand the question. Is there an option to overwrite just parts of the existing file?

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

Re: About Question enthuware.ocpjp.v7.2.1086 :

Post by admin »

Not sure what you mean. The question contains a code that operates on two files. You are expected to know the outcome.
Yes, it is possible to modify just parts on an existing file.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests