From other
thread, I found that Andrew said that:
You should only synchronize on the methods that are dealing with
the physical file access
I implemented the method named seek to move the file pointer of RandomAccessFile to proper position base on the record number. does that method need to be marked as synchronized AND WHY? or we only need to sychronized the method like this (only synchronized the method physically write to file?):