Bookmark Topic Watch Topic
  • New Topic

pls assist with me this code  RSS feed

 
gaurav madan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator

The result comes out to be true,false,false because of short circuit evaluation of || operator...but if we go by precedence && has higher precedence than ||..
in that way && should be evaluated first and the answer should come out to be
true,true,true...
why isn't precedence rule followed here??
help required please !!
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum. This one is for servlet-related content.

Let's continue the discussion in this duplicate thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!