Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

When I read a file in Java is it copied twice

I have been reading OS books. What I understand is that when say I read a file in Java say I load the whole S3 file in memory. First the file copied to a memory off the heap. Then again copied to the heap.

Is that correct? so basically the overall consumed memory is 2 times the file size.

Comments