Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on operator Precedence !!Confused!!

 
aditya chaudhari
Ranch Hand
Posts: 31
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question from Enthuware on operated precedency.

i am confused with explnanation given.
Following code is from Enthuware tests i have just add few extra lines to experiment on concept.


I am expecting && to be evaluated first than || operator ( As per precedency rules here webpage)

ENthuware explanation as below:
There is not just one rule of precedence but multiple rules that are at play here. As per 15.7.1,
"The Java programming language guarantees that the operands of operators appear to be evaluated in a specific evaluation order, namely, from left to right.".

But i dont understand what multiple rules admin talking about.

Please help me to clear my concept.

@ Enthuware : My sole purpose to post this question and forum discussion in this forum is to clear my doubt. I dont have any complaints about Quality and support of Enthuware. If i am violating any rules to use product please let me know i 'll remove this post.
 
Sergei Zhylinski
Ranch Hand
Posts: 84
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This question was asked before (as I remember, a week ago). Please go through this topic. I know were the previous topic starter took this question. ))
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks almost exactly the same as this thread. Check it out and let us know if you still have doubts.
 
aditya chaudhari
Ranch Hand
Posts: 31
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roel and Sergei ,
Thank you for your reply .
I have gone through thread you have mentioned it is appropriate for my questions.

Thank you for immediate replies.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice to know: instead of making a "thank you" post, you could also the post(s) which you liked. It's easier, faster and other ranchers will see immediately which are the "starred" posts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic