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

Which fragment is an


Which fragment is an example of inappropriate use of assertions? ()

  • A assert (!(map.contains(x))); map.add(x);
  • B if (x > 0){}else { assert (x==0); }
  • C public void aMethod(int x) { assert (x > 0); }
  • D assert (invariantCondition()); return retval;
  • E switch (x) { case 1: break; case 2: creak; default: assert (x == 0);
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、An administrator is 

An administrator is logged into a remote server using an Xwindows client and wants&#819...

2、An administrator is 

An administrator is creating a new logical partition (LPAR) with 6 virtual processors a...

3、An AIX system, which

An AIX system, which is running a database, is having performance issues with I/O&#81...

4、An administrator is 

An administrator is configuring an application monitor. Upon encountering an unrecoverable error&#8...

5、An administrator is 

An administrator is moving a volume group from one server to another. The disks w...

6、Which includes an ac

Which includes an activity to host a workshop that focuses on the identification and&#8...