J2EE Spring Hibernate Quick Review: Chapters 27 to 31

In the preceding 5 chapters we took a look at loops, logical condition blocks, exception handling and assertions. Lets quickly review what we have learnt in these chapters.


Writing Code Using if and switch Statements

* The only legal expression in an if statement is a boolean expression, in other words an expression that resolves to a boolean or a Boolean variable.

* Watch out for boolean