title: Does RandomAccessFile in java read entire file in memory?
body: <p>I need to read last n lines from a large file (say 2GB). The file is UTF-8 encoded. </p>
  
  <p>Would like to know the most efficient way of doing it. Read about RandomAccessFile in java, but does the seek() method , read the entire file in memory. It uses native implementation so i wasn't able to refer the source code.</p>