Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Christmas Elf Doll
anil1961
Updated:
Sunday at 6:49 PM
AI Chat Bot for Websites
sajith.xp.pk
Updated:
Thursday at 1:17 PM
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Nov 7, 2026
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Java Help plzz.
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="pradeep0079" data-source="post: 10716170" data-attributes="member: 302518"><p>here both (x>y) and (num1 != num2) are boolean conditions ,both will evaluate and return a boolean value.</p><p>^ operator is <span style="font-size: 10px">Boolean XOR</span> opeartor ,it worka as follows </p><p></p><p><span style="font-size: 10px">If x is true and y is false, the result is true.</span></p><p><span style="font-size: 10px"> If x is false and y is true, the result is true.</span></p><p><span style="font-size: 10px"> Otherwise, the result is false.</span></p><p><span style="font-size: 10px"> Both x and y are evaluated before the test.</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"></span>System.out.println((x > y) ^ (num1 != num2));</p><p></p><p>so above expression will true since (x>y) =false and (num1!=num2) =true</p><p>according to send rule </p><p>for more information visit this site:</p><p><a href="http://www.particle.kth.se/%7Elindsey/JavaCourse/Book/Part1/Java/Chapter02/operators.html" target="_blank">http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter02/operators.html</a></p><p></p><p>hope this helps.</p></blockquote><p></p>
[QUOTE="pradeep0079, post: 10716170, member: 302518"] here both (x>y) and (num1 != num2) are boolean conditions ,both will evaluate and return a boolean value. ^ operator is [SIZE=2]Boolean XOR[/SIZE] opeartor ,it worka as follows [SIZE=2]If x is true and y is false, the result is true. If x is false and y is true, the result is true. Otherwise, the result is false. Both x and y are evaluated before the test. [/SIZE]System.out.println((x > y) ^ (num1 != num2)); so above expression will true since (x>y) =false and (num1!=num2) =true according to send rule for more information visit this site: [URL="http://www.particle.kth.se/%7Elindsey/JavaCourse/Book/Part1/Java/Chapter02/operators.html"]http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter02/operators.html[/URL] hope this helps. [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom