wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Question on Bitwise Conditional Operator 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 » Programmer Certification (SCJP/OCPJP)
Bookmark "Question on Bitwise Conditional Operator" Watch "Question on Bitwise Conditional Operator" New topic
Author

Question on Bitwise Conditional Operator

Sri Jad
Ranch Hand

Joined: Apr 25, 2005
Posts: 49


What result we can expect from the above code...Iam getting

Pet status is... Pet count OK

But sizeOfYard > 8 is also true.. Why not Pet limit on the edge is getting printed??

Some one please answer me

Thanks

JD
[ May 25, 2006: Message edited by: Sri Jad ]
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023

equal to


or


[ May 25, 2006: Message edited by: wise owen ]
Sri Jad
Ranch Hand

Joined: Apr 25, 2005
Posts: 49
Thanks wise owen
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question on Bitwise Conditional Operator
 
Similar Threads
Print Odd and even number in sequence with using two threads
How to retrive data two times from database in sinble jsp page.
replacing particular characters in a string with...
Question on inheritance!
variable problem