可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Which determines if 


Which determines if “prefs” is a directory and exists on the file system?()  

  • A Boolean exists=Directory.exists (“prefs”);
  • B Boolean exists=(new File(“prefs”)).isDir();
  • C Boolean exists=(new Directory(“prefs”)).exists();
  • D Boolean exists=(new File(“prefs”)).isDirectory();
  • E Boolean exists=true;  Try{  Directory d = new Directory(“prefs”);  } catch (FileNotFoundException e) {  exists = false;  }
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值

若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值为()A0B-1C1D2

2、AMPS属于()。

AMPS属于()。A1GB2GC3GD4G

3、Which code determines̳

Which code determines the int value foo closest to, but not greater than, a dou...

4、cAMP(cyclic AMP)

cAMP(cyclic AMP)

5、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

6、Which code determines̳

Which code determines the int value foo closest to a double value bar?()  A&en...