Page 467 - Introduction to Programming with Java: A Problem Solving Approach
P. 467

                  CHAPTER
11
   Type Details and Alternate Coding Mechanisms
Objectives
• Improve your understanding of relationships and differences among primitive data types and your appreciation for their individual limitations.
• Understand how numerical codes identify characters.
• Learn the rules for automatic type conversions and the risks in explicit type casting.
• Understand embedded postfix and prefix increment and decrement operators.
 • Understand embedded assignment expressions.
Apago PDF Enhancer
• Learn where and how conditional operator expressions can shorten code.
• See how short-circuit evaluation helps avoid troublesome operations.
• See how empty statement works.
• Learn how to use break statements in loops.
• Optionally, use Unicode characters in GUI applications. Outline
11.1 Introduction
11.2 IntegerTypesandFloating-PointTypes
11.3 charTypeandtheASCIICharacterSet
11.4 TypeConversions
11.5 Prefix/PostfixModesforIncrement/DecrementOperators 11.6 EmbeddedAssignments
11.7 ConditionalOperatorExpressions
11.8 ExpressionEvaluationReview
11.9 Short-CircuitEvaluation
11.10 EmptyStatement
11.11 breakStatementwithinaLoop 11.12 forLoopHeaderDetails
11.13 GUITrack:Unicode(Optional)
 433








































































   465   466   467   468   469