0
File Handling in Java
What's the difference between the use of File f=new File("filename.txt"); and f.createNewFile(); ?
1 Answer
+ 2
new File creates just the Java object. And it's implementation allows you to access to filesystem e.g. in order to either open an existing or create a new file.