The Tilde (~
) performs a bitwise complement of a numerical value in Java.
See: Bitwise complement (~
): inverts ones and zeroes in a number
More Related Contents:
- Is there a difference between x++ and ++x in java?
- Difference between >>> and >>
- The difference between += and =+
- What is the difference between += and =+?
- What will be the working of this statement in program of java? [closed]
- What is x after “x = x++”?
- Is there a goto statement in Java?
- What is the difference between & and && in Java?
- Converting Symbols, Accent Letters to English Alphabet
- How does a for loop work, specifically for(;;)?
- What’s the syntax to import a class in a default package in Java? [duplicate]
- Is it possible to pass arithmetic operators to a method in java?
- What is the breakdown for Java’s lambda syntax?
- Creating a “logical exclusive or” operator in Java
- Pipe (|) operator in Java
- What’s the difference between and
- Difference between & and && in Java? [duplicate]
- Check if a String contains a special character
- In Java, can I define an integer constant in binary format?
- XOR operation with two strings in java
- Curly braces in “new” expression? (e.g. “new MyClass() { … }”)
- Java modifiers syntax and format
- Convert binary string to byte array
- Null check in an enhanced for loop
- Java Lombok: Omitting one field in @AllArgsConstructor?
- What does >> do in Java?
- Why is declaration of the variable required inside a for-each loop in java
- What does a tilde in angle brackets mean when creating a Java generic class?
- When would you put a semicolon after a method closing brace?
- My java code has an obvious error. Why does it compile and run?