Sprechen Sie Java: Eine Einführung in das systematische Programmieren, 4. Auflage
1. Grundlagen11 Documented Misconceptions
Check YourselfAssignmentCopiesObject
Assignment copies the objectConditionalIsSequence
If-else is equivalent to sequence of two ifsConditionOneOutEdge
A condition node in a control-flow graph can have a single outgoing edgeForIsConditional
The body of a for statement executes at most onceIfIsLoop
The body of an if statement executes repeatedly, as long as the condition holdsMultiValueVariable
A variable can contain more than one valueIfRequiresElse
Every if statement requires an elseStatementMultipleOutEdges
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