Studyon Minte9.com
Fundamentals (Docs)

Study

Expressions



Expresions

An expression is a construct made up of variables, operators, and method invocations,
that evaluates to a single value.

	int cadence = 0;
	anArray[0] = 100;
	if(value1 == value2)

Be explicit and indicate use parentheses which. This practice makes code easier to read and to maintain.
	
	x + y / 100 
	x + (y / 100) // unambiguous, recommended


Statements

Statements are roughly equivalent to sentences in natural languages. A statement forms a complete unit of execution.

        double aValue; // declaration
	aValue = 8933.234; // assignment
	aValue++; // increment
	System.out.println("Hello World!"); // method invocation
	Bicycle myBike = new Bicycle();	 // object creation
	

Blocks

A block is a group of zero or more statements between balanced braces.

	if (condition) { // begin block 1
		System.out.println("Condition is true.");
	} // end block 1
	else { // begin block 2
		System.out.println("Condition is false.");
	} // end block 2


http://docs.oracle.com/javase/tutorial/java/nutsandbolts/expressions.html