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

Java认证考试

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

Click the Exhibit button. The Appliance class is a Singleton that loads a set of properties into a Map from an external data source.Assume: An instance of the Appliance class exists in the application-scoped attribute, appl The appliance object includes the name property that maps to the value Cobia The request- scoped attribute, prop,has the valuename.  Which two EL code snippets will display the string Cobia?()

  • A、${appl.properties.name}
  • B、${appl.properties.prop}
  • C、${appl.properties[prop]}
  • D、${appl.properties[name]}
  • E、${appl.getProperties().get(prop)}
  • F、${appl.getProperties().get(’name’)}
正确答案:A,C
答案解析:
进入题库查看解析

微信扫一扫手机做题