~ : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

~
Tilde ~ performs a bit-wise logical, one’s complement negation, usually on an int. Every zero bit becomes 1 and every 1 bit becomes 0.

~ 0b1110_00000b0001_1111

For operations on boolean use the ! operator instead.


This page is posted
on the web at:

http://mindprod.com/jgloss/bitwisenotoperator.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\bitwisenotoperator.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[54.158.241.232]
You are visitor number