wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Precedence Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Precedence Question" Watch "Precedence Question" New topic
Author

Precedence Question

Varun Chopra
Ranch Hand

Joined: Jul 10, 2008
Posts: 211
Can one provide with an expression which would prove that == has less precedence than <=?


-Varun -
(My Blog) - Online Certifications - Webner Solutions
Campbell Ritchie
Sheriff

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

Joined: Jul 10, 2008
Posts: 211
hmm Thanks Campbell.

This works:



This does not work

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37877
    
  22
Well done.
 
Don't get me started about those stupid light bulbs.
 
subject: Precedence Question
 
Similar Threads
< operator
From deepak's mock
Multiple Assignments from Khalid's book
Operators
code behaving strangely