Answers for "java or sign"

0

java or symbol

//logical OR is || in Java
public static boolean or(boolean a,boolean b){
	return a||b;
}
//bitwise OR is | in Java
public static int bitwiseOr(int a,int b){
	return a|b;
}
Posted by: Guest on April-06-2021
0

summary of operator java

~       Unary bitwise complement
<<      Signed left shift
>>      Signed right shift
>>>     Unsigned right shift
&       Bitwise AND
^       Bitwise exclusive OR
|       Bitwise inclusive OR
Posted by: Guest on April-07-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language