多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

You need to store a floating point number,called Tsquare,in the session scope. Which two code snippetsallow you to retrieve this value?()

  • A、float Tsquare = session.getFloatAttribute("Tsquare");
  • B、float Tsquare = (Float) session.getAttribute("Tsquare");
  • C、float Tsquare = (float) session.getNumericAttribute("Tsquare");
  • D、float Tsquare = ((Float) session.getAttribute.("Tsquare")).floatValue();
  • E、float Tsquare = ((Float) session.getFloatAttribute.("Tsquare")).floatValue;
正确答案:B,D
答案解析:
进入题库查看解析

微信扫一扫手机做题