[填空题] 阅读下列程序段 public class OperatorsAndExpressions { String conditionalExpression(int score) { St
[填空题] 阅读下列程序段 public class OperatorsAndExpressions { String conditionalExpression(int score) { String result; //如果score超过60分, 则结果是passed, 否则是doesn’t pass result=-(score>=60)"passed":"doesn’t pass"; System.out.println(result); retum result; } public static void main(String args[]) { OperatorsAndExpressions OperAndExp=new OperatorsAndExpressions(); //条件表达式 OperAndExp.conditionalExpression(65); } } 其执行结果是 【8】 。
参考答案: