Which two EL code snippets will display the string Cobia?

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 value name.
Which two EL code snippets will display the string Cobia? (Choose two.)

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 value name.
Which two EL code snippets will display the string Cobia? (Choose two.)

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’)}

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *