File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question from mock exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question from mock exam" Watch "question from mock exam" New topic
Author

question from mock exam

shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 223

<html>
<body>
Result is ${"a" < "b"}
</body>
</html>
1. “Result is true”
2. “Result is false”

answer is :: a

why true??
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

hi

from el 2.2 specifications :

1.8.1 A {<,>,<=,>=,lt,gt,le,ge} B
■ If A==B, if operator is <=, le, >=, or ge return true.
■ If A is null or B is null, return false
■ If A or B is BigDecimal, coerce both A and B to BigDecimal and use the return
value of A.compareTo(B).
■ If A or B is Float or Double coerce both A and B to Double apply operator
■ If A or B is BigInteger, coerce both A and B to BigInteger and use the return
value of A.compareTo(B).

If A or B is Byte, Short, Character, Integer, or Long coerce both A and B to
Long and apply operator
■ If A or B is String coerce both A and B to String, compare lexically

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question from mock exam
 
Similar Threads
problem with errorPage and isErrorPage="true"
EL Query
Confusion in EL
Niko's exam doubt
question from SCWCD mock test