java or symbol

Solutions on MaxInterview for java or symbol by the best coders in the world

showing results for - "java or symbol"
Lisa
20 Jan 2020
1//logical OR is || in Java
2public static boolean or(boolean a,boolean b){
3	return a||b;
4}
5//bitwise OR is | in Java
6public static int bitwiseOr(int a,int b){
7	return a|b;
8}