Given the code fragment:
What is the result?
true true
true false
false false
false true
100
101
102
103
Compilation fails
Which is true about the switch statement?
Its expression can evaluate to a collection of values.
The break statement, at the end of each case block, is optional.
Its case label literals can be changed at runtime.
It must contain the default section.
References:
Given:
Area is 6.0
Area is 3.0
Compilation fails at line n1
Compilation fails at line n2.