网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Whichfragmentisanexampleofinappropriateuseofassertions?()
A.assert(!(map.contains(x)));map.add(x);
B.if(x>0){}else{assert(x==0);}
C.publicvoidaMethod(intx){assert(x>0);}
D.assert(invariantCondition());returnretval;
E.switch(x){case1:break;case2:creak;default:assert(x==0);
参考答案
更多 “ Whichfragmentisanexampleofinappropriateuseofassertions?() A.assert(!(map.contains(x)));map.add(x);B.if(x0){}else{assert(x==0);}C.publicvoidaMethod(intx){assert(x0);}D.assert(invariantCondition());returnretval;E.switch(x){case1:break;case2:creak;default:assert(x==0); ” 相关考题
热门标签
最新试卷