Question: Why is it better to save an entire ArrayList to an object output stream instead of program ming a loop that writes each element?

Why is it better to save an entire ArrayList to an object output stream instead of program ming a loop that writes each element?

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Writing each element of an ArrayList individually to an object output stream would require several write operations and it can potentially negatively ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!