A+    A−    B  
Programming
PHP
JAVA
Flash Tutorials
AddThis Social Bookmark Button

What comes first ++ or +?

Arithmetic precedence

What is happening in the code below?

	public static  void main(String[] args) {
			int a2 = 3;
			int b2 = 4;
			int result = a2+++b2;
			System.out.println("result   "+ result );
			System.out.println("a2 "+ a2);		System.out.println("result   "+ result );
	}
	
	
>

Top
AddThis Social Bookmark Button