File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Precedence Question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Precedence Question" Watch "Precedence Question" New topic
Author

Precedence Question

Varun Chopra
Ranch Hand

Joined: Jul 10, 2008
Posts: 204

Can one provide with an expression which would prove that == has less precedence than <=?


-Varun -
(My Blog) - Mock Tests
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32694
    
    4
Yes, try it, and you will see it won't compile with the wrong () in.
Varun Chopra
Ranch Hand

Joined: Jul 10, 2008
Posts: 204

hmm Thanks Campbell.

This works:



This does not work

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32694
    
    4
Well done.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Precedence Question
 
Similar Threads
Multiple Assignments from Khalid's book
From deepak's mock
code behaving strangely
< operator
Operators