Sprechen Sie Java: Eine Einführung in das systematische Programmieren, 4. Auflage
1. Grundlagen11 Documented Misconceptions
Check YourselfAssignmentCopiesObject
Assignment copies the objectConditionOneOutEdge
A condition node in a control-flow graph can have a single outgoing edgeConditionalIsSequence
If-else is equivalent to sequence of two ifsForIsConditional
The body of a for statement executes at most onceIfIsLoop
The body of an if statement executes repeatedly, as long as the condition holdsIfRequiresElse
Every if statement requires an elseMultiValueVariable
A variable can contain more than one valueStatementMultipleOutEdges
A non-condition node in a control-flow graph can have multiple outgoing edgesUntypedVariables
Variable declarations don't need a typeZeroInEdges
A control-flow graph node (other than the entry node) can have zero incoming edgesZeroOutEdges
A control-flow graph node (other than the exit node) can have zero outgoing edges