Oracle
1Z0-899 · Question #141
You are building a dating web site. The client's date of birth is collected along with lots of other information. You have created an EL function with the signature: calcAge(java.util.Date):int and…
The correct answer is C. ${funct:age(client.birthDate) < 25}. See the full explanation below for the reasoning.
Question
You are building a dating web site. The client's date of birth is collected along with lots of other information. You have created an EL function with the signature: calcAge(java.util.Date):int and it is assigned to the name, age, in the namespace, funct. In one of your JSPs you need to print a special message to clients who are younger than 25. Which EL code snippet will return true for this condition?
Options
- A${calcAge(client.birthDate) < 25}
- B${calcAge[client.birthDate] < 25}
- C${funct:age(client.birthDate) < 25}
- D${funct:age[client.birthDate] < 25}
- E${funct:calcAge(client.birthDate) < 25}
- F${funct:calcAge[client.birthDate] < 25}
How the community answered
(39 responses)- A8% (3)
- B3% (1)
- C74% (29)
- E3% (1)
- F13% (5)
Community Discussion
No community discussion yet for this question.