Java Interview 3: How to read a large file efficiently in Java

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

bro try filtering a file with over 12 million lines of chars and checking the last index if it has a specific char.

SamiSabirIdrissi
Автор

First Thank you so much for your video. After your video I just went through java.nio.files jar and I noticed that nio is much faster than the io. Now my question is how to handle the data which I read using nio with the use of streams like this example. (printing large file data using stream, removing duplicate words from the large file, replace some word (x) with some other word(y)) To solve these kind of problems how can I use streams using nio package while working with the large file.

rajendrachowdary
Автор

Wrong… if the file does nt fit i the memory then

TheAbhik
Автор

this is not accurate and you cant guarantee times accuracy because depends of the processor-threads . if you run this multiples times, you will get multiples different results....

CASLOAcademy