This chapter begins with all of the operators that come to Java from C and C++. In
addition, you’ll discover common operator pitfalls, casting, promotion, and
precedence. This is followed by the basic control-flow and selection operations that
you get with virtually any programming language: choice with if-else; looping with
for and while; quitting a loop with break and continue as well as Java’s labeled
break and labeled continue (which account for the “missing goto” in Java); and
selection using switch. Although much of this material has common threads with C
and C++ code, there are some differences. In addition, all the examples will be full
Java examples so you’ll get more comfortable with what Java looks like.
Monday, July 28, 2008
Chapter 3: Controlling program flow
Posted by Ganesh Kumar Devarasetty at 9:37 AM
Labels: Introduction
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment