File Constructors Explanation

前端 未结 4 599
轮回少年
轮回少年 2021-02-05 06:23

I was unable to understand the following file constructors.

public File(String parent, String child) and 
public File(File parent, String child)

4条回答
  •  鱼传尺愫
    2021-02-05 07:01

    "The parent abstract pathname is taken to denote a directory, and the child pathname string is taken to denote either a directory or a file. " As specified on the API

提交回复
热议问题