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

Which code determines&#819


Which code determines the int value foo closest to a double value bar?()  

  • A Int foo = (int) Math.max(bar);
  • B Int foo = (int) Math.min(bar);
  • C Int foo = (int) Math.abs(bar);
  • D Int foo = (int) Math.ceil(bar);
  • E Int foo = (int) Math.floor(bar);
  • F Int foo = (int) Math.round(bar);
参考答案
参考解析:
分类:SCJP程序员认证考试题库