title: How to change file path location in java.io.File object
body: <p>The question says it all.
  I have a File object which is pointing to <code>/home/user/filename1</code>.</p>
  
  <p>If I call file.getAbsolutePath() then it would return <code>/home/user/filename1</code></p>
  
  <p>My question is that - </p>
  
  <ol>
  <li>Can we change the path inside file object to a different location?</li>
  <li>If yes, then how?</li>
  </ol>
  
  <p>Thanks</p>