Where will be create a new file in java, when path is not given?

后端 未结 3 1027
深忆病人
深忆病人 2021-01-06 21:54

In java,

File f;
f = new File(\"myfile.txt\");
if (!f.exists()) 
{
    f.createNewFile();
}

when excute the above code,which path is assig

3条回答
提交回复
热议问题