boolean isFile()方法用于测定( )。
参考答案(由小熊题库网聘请的专业题库老师提供的解答)
请点击↑↑↑ 查看官方参考答案 按钮
习题解析
请点击 查看官方参考答案 按钮
您可能感兴趣的题目
1 .当在应用程序中只用到一个文件时,使用( )构造方法最为实用。
A File myFile;myFile = new File(“mymotd”); B myFile = new File(“/”,”mymotd”); C File myDir= new File(”/”);myFile = new File(myDir,”mymotd”); D File myDir= new File(”/”);
2 .获取文件名使用的方法是( )。
A String getName() B String getPath() C String getAbsolutePath() D String getParent()
3 .获取文件父目录名称的方法是( )。
A String getName() B String getPath() C String getAbsolutePath() D String getParent()
4 .( )方法用于获取文件路径。
A String getName() B String getPath() C String getAbsolutePath() D String getParent()
5 .( )方法用于获取文件绝对路径。
A String getName() B String getPath() C String getAbsolutePath() D String getParent()
7 .用于获取文件长度的方法是( )。
A long lastModified () B boolean delete() C long length() D boolean isDirectory()
8 .用( )方法可以一次生成多个层次的子目录。
A boolean mkdir() B boolean mkdirs() C String[] list() D boolean exists()
9 .可以返回文件指针的当前位置的方法是( )。
A boolean mkdir() B boolean mkdirs() C long getPointer() D long getFilePointer()
10 .位置值以从文件开始处的字节偏移量pos来计算,pos为( )代表文件的开始。
A -1 B 0 C 1 D null
