Java 13 Features | Switch expression vs switch statement in java JDK 13

Pubblicato il: 28 September 2020
sul canale di: Java Beam
142
1

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


In questa pagina del sito puoi guardare il video online Java 13 Features | Switch expression vs switch statement in java JDK 13 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Java Beam 28 September 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 142 volte e gli è piaciuto 1 spettatori. Buona visione!