File Constructors Explanation
<p>I was unable to understand the following file constructors. </p>

<pre><code>    public File(String parent, String child) and 
    public File(File parent, String child)
</code></pre>

<p>What do the parameters <code>parent</code> and <code>child</code> mean for the file? When can I use these? I have done few programs related to file but I have never used these. I usually use</p>

<pre><code>    public File(String pathname)
</code></pre>

<p>I have read <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/io/File.html#File%28java.lang.String,%20java.lang.String%29" rel="nofollow">java file docs</a> but I was not able to understand when to use them and how to use these constructors. Can some one please explain and give examples of them?</p>
