Extend switch so it can be used as either a statement or an expression, and so that both forms can use either traditional case labels (with fall through) or new case labels (with no fall through), with a further new statement for yielding a value from a switch expression.
These changes will simplify everyday coding, and prepare the way for the use of pattern matching in switch.
This was a preview language feature in JDK 12 and JDK 13.
#JavaBeam #Java13Features #SwitchExpressionInJava #Java #Java13NewFeatures
Nesta página do site você pode assistir ao vídeo on-line Java 13 Features | Switch expression vs switch statement in java JDK 13 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Java Beam 28 September 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 142 vezes e gostou 1 espectadores. Boa visualização!