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
答案解析:有
微信扫一扫手机做题