Home
(current)
About
Tutorial
Technologies
C#
Deep Learning
Statistics for AIML
Natural Language Processing
Machine Learning
SQL -Structured Query Language
Python
Ethical Hacking
Placement Preparation
Quantitative Aptitude
View All Tutorial
Quiz
C#
SQL -Structured Query Language
Quantitative Aptitude
Java
View All Quiz Course
Q & A
C#
Quantitative Aptitude
Java
View All Q & A course
Programs
Articles
Identity And Access Management
Artificial Intelligence & Machine Learning Project
How to publish your local website on github pages with a custom domain name?
How to download and install Xampp on Window Operating System ?
How To Download And Install MySql Workbench
How to install Pycharm ?
How to install Python ?
How to download and install Visual Studio IDE taking an example of C# (C Sharp)
View All Post
Tools
Program Compiler
Sql Compiler
Replace Multiple Text
Meta Data From Multiple Url
Contact
User
Login
Register
FRESHER BELL ALL LANGUAGE ONLINE COMPILER
Java Unary Operator Boolean Inverting Example
Languages
Java
C
C-99
C++
C++ 14
C++ 17
PHP
Perl
Python 2
Python 3
Ruby
Go Lang
Scala
Bash Shell
SQL
Pascal
C#
VB.NET
Haskell
Objective C
Swift
Groovy
Fortran
Brainf**k
Lua
TCL
Hack
Rust
D
Ada
R Language
Free Basic
Theme
github
xcode
ambiance
monokai
chaos
chrome
Program
public class UnaryOperator{ public static void main(String args[]){ boolean x=true; boolean y=false; System.out.println(!x);//1 //(This will invert x true value to false) System.out.println(!y); //(This will invert y false value to true) }}
Run
Clear
Input
Output
Powered By Fresher Bell™
Similar Program
#
Program
Language
1
Java Bitwise And Operator Example
Java
2
Java program to generate right angled triangle or half pyramid using alphabet and for loop
Java
3
Java Logical Operator Example
Java
4
Java Break Keyword Example
Java
5
Java program to get current date and time
Java
6
Java program to find GCD using recursion
Java
7
Java program to calculate sum of number from 1 to user input using for loop
Java
8
Java program to find transpose of matrix
Java
9
Java program to find quotient and remainder on division by taking input from user
Java
10
Java program to round the decimal to exact decimal place
Java
11
Java Multiple Inheritance using Interface
Java
12
Java Program to check whether a given character is vowel or consonants using if else
Java
13
Java Logical And Operator Example
Java
14
Java program to generate right angled triangle or half pyramid using number and for loop
Java
15
Java program to check whether the user input is leap year or not
Java
16
Java program to find LCM of two number taken by user using while loop
Java
17
Java program to convert Map (HashMap) to List (ArrayList)
Java
18
Java Program to check whether a given character is vowel or consonants using switch case
Java
19
Java if else if ladder Example
Java
20
Java Switch Case Example
Java
#
Program
Language
Copyright © 2020
Inovatik
- All rights reserved