<Table> <Tr> <Th> Precedence </Th> <Th> Operator </Th> <Th> Description </Th> <Th> Associativity </Th> </Tr> <Tr> <Th> </Th> <Td> ( ) </Td> <Td> Method invocation </Td> <Td> Left - to - right </Td> </Tr> <Tr> <Td> ( ) </Td> <Td> Array access </Td> </Tr> <Tr> <Td> . </Td> <Td> Class member selection </Td> </Tr> <Tr> <Th> </Th> <Td> + + -- </Td> <Td> Postfix increment and decrement </Td> </Tr> <Tr> <Th> </Th> <Td> + + -- </Td> <Td> Prefix increment and decrement </Td> <Td> Right - to - left </Td> </Tr> <Tr> <Td> + - </Td> <Td> Unary plus and minus </Td> </Tr> <Tr> <Td> ! ~ </Td> <Td> Logical NOT and bitwise NOT </Td> </Tr> <Tr> <Td> ( type ) val </Td> <Td> Type cast </Td> </Tr> <Tr> <Td> new </Td> <Td> Class instance or array creation </Td> </Tr> <Tr> <Th> </Th> <Td> * / % </Td> <Td> Multiplication , division , and modulus ( remainder ) </Td> <Td> Left - to - right </Td> </Tr> <Tr> <Th> 5 </Th> <Td> + - </Td> <Td> Addition and subtraction </Td> </Tr> <Tr> <Td> + </Td> <Td> String concatenation </Td> </Tr> <Tr> <Th> 6 </Th> <Td> < < > > > > > </Td> <Td> Bitwise left shift , signed right shift and unsigned right shift </Td> </Tr> <Tr> <Th> 7 </Th> <Td> < < = </Td> <Td> Relational `` less than '' and `` less than or equal to '' </Td> </Tr> <Tr> <Td> > > = </Td> <Td> Relational `` greater than '' and `` greater than or equal to '' </Td> </Tr> <Tr> <Td> instanceof </Td> <Td> Type comparison </Td> </Tr> <Tr> <Th> 8 </Th> <Td> = = ! = </Td> <Td> Relational `` equal to '' and `` not equal to '' </Td> </Tr> <Tr> <Th> 9 </Th> <Td> & </Td> <Td> Bitwise and logical AND </Td> </Tr> <Tr> <Th> 10 </Th> <Td> </Td> <Td> Bitwise and logical XOR ( exclusive or ) </Td> </Tr> <Tr> <Th> 11 </Th> <Td> </Td> <Td> Bitwise and logical OR ( inclusive or ) </Td> </Tr> <Tr> <Th> 12 </Th> <Td> && </Td> <Td> Logical conditional - AND </Td> </Tr> <Tr> <Th> 13 </Th> <Td> </Td> <Td> Logical conditional - OR </Td> </Tr> <Tr> <Th> 14 </Th> <Td> c ? t : f </Td> <Td> Ternary conditional ( see ? :) </Td> <Td> Right - to - left </Td> </Tr> <Tr> <Th> 15 </Th> <Td> = </Td> <Td> Simple assignment </Td> </Tr> <Tr> <Td> + = - = </Td> <Td> Assignment by sum and difference </Td> </Tr> <Tr> <Td> * = / = % = </Td> <Td> Assignment by product , quotient , and remainder </Td> </Tr> <Tr> <Td> < < = > > = > > > = </Td> <Td> Assignment by bitwise left shift , signed right shift and unsigned right shift </Td> </Tr> <Tr> <Td> & = ^ = = </Td> <Td> Assignment by bitwise AND , XOR , and OR </Td> </Tr> </Table>
<Table> <Tr> <Th> Precedence </Th> <Th> Operator </Th> <Th> Description </Th> <Th> Associativity </Th> </Tr> <Tr> <Th> </Th> <Td> ( ) </Td> <Td> Method invocation </Td> <Td> Left - to - right </Td> </Tr> <Tr> <Td> ( ) </Td> <Td> Array access </Td> </Tr> <Tr> <Td> . </Td> <Td> Class member selection </Td> </Tr> <Tr> <Th> </Th> <Td> + + -- </Td> <Td> Postfix increment and decrement </Td> </Tr> <Tr> <Th> </Th> <Td> + + -- </Td> <Td> Prefix increment and decrement </Td> <Td> Right - to - left </Td> </Tr> <Tr> <Td> + - </Td> <Td> Unary plus and minus </Td> </Tr> <Tr> <Td> ! ~ </Td> <Td> Logical NOT and bitwise NOT </Td> </Tr> <Tr> <Td> ( type ) val </Td> <Td> Type cast </Td> </Tr> <Tr> <Td> new </Td> <Td> Class instance or array creation </Td> </Tr> <Tr> <Th> </Th> <Td> * / % </Td> <Td> Multiplication , division , and modulus ( remainder ) </Td> <Td> Left - to - right </Td> </Tr> <Tr> <Th> 5 </Th> <Td> + - </Td> <Td> Addition and subtraction </Td> </Tr> <Tr> <Td> + </Td> <Td> String concatenation </Td> </Tr> <Tr> <Th> 6 </Th> <Td> < < > > > > > </Td> <Td> Bitwise left shift , signed right shift and unsigned right shift </Td> </Tr> <Tr> <Th> 7 </Th> <Td> < < = </Td> <Td> Relational `` less than '' and `` less than or equal to '' </Td> </Tr> <Tr> <Td> > > = </Td> <Td> Relational `` greater than '' and `` greater than or equal to '' </Td> </Tr> <Tr> <Td> instanceof </Td> <Td> Type comparison </Td> </Tr> <Tr> <Th> 8 </Th> <Td> = = ! = </Td> <Td> Relational `` equal to '' and `` not equal to '' </Td> </Tr> <Tr> <Th> 9 </Th> <Td> & </Td> <Td> Bitwise and logical AND </Td> </Tr> <Tr> <Th> 10 </Th> <Td> </Td> <Td> Bitwise and logical XOR ( exclusive or ) </Td> </Tr> <Tr> <Th> 11 </Th> <Td> </Td> <Td> Bitwise and logical OR ( inclusive or ) </Td> </Tr> <Tr> <Th> 12 </Th> <Td> && </Td> <Td> Logical conditional - AND </Td> </Tr> <Tr> <Th> 13 </Th> <Td> </Td> <Td> Logical conditional - OR </Td> </Tr> <Tr> <Th> 14 </Th> <Td> c ? t : f </Td> <Td> Ternary conditional ( see ? :) </Td> <Td> Right - to - left </Td> </Tr> <Tr> <Th> 15 </Th> <Td> = </Td> <Td> Simple assignment </Td> </Tr> <Tr> <Td> + = - = </Td> <Td> Assignment by sum and difference </Td> </Tr> <Tr> <Td> * = / = % = </Td> <Td> Assignment by product , quotient , and remainder </Td> </Tr> <Tr> <Td> < < = > > = > > > = </Td> <Td> Assignment by bitwise left shift , signed right shift and unsigned right shift </Td> </Tr> <Tr> <Td> & = ^ = = </Td> <Td> Assignment by bitwise AND , XOR , and OR </Td> </Tr> </Table>
what is the use of + in java
what is the use of + in java
Unary plus Addition String concatenation
Unary plus Addition String concatenation