[填空题] 阅读下面程序 public class OperatorsAndExpressions String conditionalExpression(int score) St
15 查阅
[填空题] 阅读下面程序
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);
return result;
public static void main(String args[])
OperatorsAndExpressions OperAndExp=new OperatorsAndExpressions();
//条件表达式
OperAndExp.conditionalExpression(65);
程序的执行结果是______。
参考答案: