Oracle
1Z0-860 · Question #8
The syntax of the ORDER BY clause is defined in the Java Persistence API asorderby_clause ::=ORDER BY orderbyjtem {, orderbyjtem}* Which statement is correct about the use of ORDER BY clauses?
The correct answer is D. If two orderbyjtem methods are provided the left orderbyjtem has the higher precedence. See the full explanation below for the reasoning.
Question
The syntax of the ORDER BY clause is defined in the Java Persistence API asorderby_clause ::=ORDER BY orderbyjtem {, orderbyjtem}* Which statement is correct about the use of ORDER BY clauses?
Options
- AOnly literals can be specified as an orderbyjtem.
- BFields or properties of any type can be specified as an orderbyjtem.
- CThe ordering must be specified if two or more orderbyjtem methods are provided.
- DIf two orderbyjtem methods are provided the left orderbyjtem has the higher precedence.
How the community answered
(40 responses)- A5% (2)
- B13% (5)
- C5% (2)
- D78% (31)
Community Discussion
No community discussion yet for this question.