Java Addition Operator

Chapter: Operators Last Updated: 18-05-2017 13:37:05 UTC

Program:

            /* ............... START ............... */
                
public class JavaAdditionOperator {

	public static void main(String[] args) {
		int number1, number2, number3, result;
		number1 = 7;
		number2 = 8;
		number3 = 11;
		System.out.println("number1=7; number2=8; number3=11");
		result = number1 + number2 + number3;
		System.out.println("Result : " + result);
	}

}
                /* ............... END ............... */
        

Output

number1=7; number2=8; number3=11
Result : 26

Tags

Addition Operator, Operators, Java

Similar Programs Chapter Last Updated
Java Left Shift Operator Operators 04-09-2018
Java Right Shift Operator Operators 13-12-2016
Prefix Operator In Java Example Operators 19-06-2016
Logical Operators In Java Example Operators 17-06-2016
Operator Precedence In Java Examples Operators 17-06-2016
Ternary Operators In Java Example Operators 15-07-2016
Relational Operators In Java Example Operators 11-06-2016
Modulus Operators In Java Example Operators 15-07-2016
Increment And Decrement In Java Example Operators 15-07-2016
Boolean Operator In Java Example Operators 15-07-2016
Bitwise Operator In Java Example Operators 16-06-2017
Assignment Operation In Java Example Operators 06-04-2016
Arithmetic Operation In Java Example Operators 11-06-2016

1