• 2022-07-25
    File类中的()方法可以用来判断文件或目录是否存在。
    A: exist()
    B: exists()
    C: fileExist()
    D: fileExists()
  • B

    内容

    • 0

      File类中的booleanexists()方法是判断文件或目录是否存在。

    • 1

      File类提供了一系列方法,用于操作其内部封装的路径指向的文件或者目录,boolean exists()方法是判断文件或目录是否存在。()

    • 2

      File类中判断文件是否存在的方法是 ( )。 A: exists( ) B: getName() C: isFile() D: delete( )

    • 3

      File类中判断一个文件或目录是否存在的方法是 A: length B: exits

    • 4

      3File类中判断文件或目录是否存在的方法是() A: isExists() B: Exists() C: isFile() D: isDirectory()