Core Java || Operators in JAVA

Bhavik Vashi
Jul 15, 2023

--

Arithmetic Operator: -

Logical Operators: -

Bitwise Operator: -

Ternary Operator: -

condition? expression1 : expression2

int num = 5;
String result = (num % 2 == 0) ? "Even": "Odd";
System.out.println(result); // Output: Odd

--

--