filmov
tv
Java 7 feature:Strings in switch Statements | How to use switch statements with strings

Показать описание
n this video we will learn how to use string object in switch Statemens.
In the JDK 7 release, you can use a String object in the expression of a switch statement.The Java compiler generates generally more efficient bytecode from switch statements that
use String objects than from chained if-then-else statements.
In the JDK 7 release, you can use a String object in the expression of a switch statement.The Java compiler generates generally more efficient bytecode from switch statements that
use String objects than from chained if-then-else statements.