The Concatenation Operator The concatenation operator + is used to put two string values together. To concatenate two variables together in Java, use the plus (+) operator txt1= "Hello World"; txt2="1234"; System.out.print(txt1 + txt2);
Arithmetic Operators Operator + * / % ++ --
description Addition Subtraction Multiplication Division modulus Increment Decrement
Assignment Operator Operator = += -= *= /= .= %=
Description assign add and assign subtract and assign multiply and assign divide and assign Concatenate and assign Modulus and assign
Comparison Operator Operator
description
== != < < >= <=
is equal to not equal to Greater than Less than Greater than or equal to Less than or equal to
Logical Operator Operators && || !
Description and or not
October 27-November 2. Lectures