Ayyan has Published 53 Articles

Java Unary Operator Examples

Ayyan

Ayyan

Updated on 30-Jul-2019 22:30:21

423 Views

The unary operator works on a single operand. Following are the examples of unary operators supported in java. Assume A = 60 and B = 20.OperatorDescriptionExample~ (bitwise compliment)Binary One's Complement Operator is unary and has the effect of 'flipping' bits.(~A ) will give -61 which is 1100 0011 in 2's ... Read More

How to set JAVA_HOME for Java in Linux?

Ayyan

Ayyan

Updated on 30-Jul-2019 22:30:21

170 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

How to configuring Java Environment on Linux?

Ayyan

Ayyan

Updated on 30-Jul-2019 22:30:21

260 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'Assuming you have stored your Java programs in \usr\local\myprograms\ directory −if you use bash as your shell, then you would add the following line ... Read More

Advertisements