Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > arithmetic operator > +
Next arithmetic operator++    Uparithmetic operator, binary operator    Previous arithmetic operator*   

+
subjectfact 
+
  • + indicates string concatenation
  • if its operands have type String
  • otherwise + indicates addition
added by: DS, source: Sun Java Tutorial, 2001-10-19 11:35:52.0
has purpose to add two operands together or to perform string concatenationadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:52.0
has syntax
operand1 + operand2
added by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:52.0
indicates addition    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:35:52.0
is said to be an overloaded operator because it has two different meanings depending on the types of its operandsadded by: JK, source: On To Java, 2001-10-19 11:35:52.0
is a subtopic of Operators2001-10-19 11:35:52.0
is an instance of arithmetic operatoradded by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:52.0
is an instance of binary operatoradded by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:52.0
binary operatoruses an infix notation2001-10-19 11:36:10.0
operatorevaluates to its result2001-10-19 11:37:36.0
has precedence2001-10-19 11:37:36.0
is part of an expression2001-10-19 11:37:36.0
is evaluated before another operator with lower precedence2001-10-19 11:37:36.0
returns a value called its result2001-10-19 11:37:37.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0