title: why new FileWriter("abc.txt") creates a new file and new File("abc.txt") does not?
body: <p><code>new File("abc.txt")</code> does not create actual file while <code>new FileWriter("abc.txt")</code> creates a file on disk. While going through source code i found that <code>new FileWriter("abc.txt")</code> eventually creates an object of file like <code>new File()</code></p>