Are switch statements case sensitive Java?

equals method; consequently, the comparison of String objects in switch statements is case sensitive . The Java compiler generates generally more efficient bytecode from switch statements that use String objects than from chained if-then-else statements.

Sizin İçin Seçtik  Dacia Logan fiyatı ne kadar?

Leave a Reply

Your email address will not be published. Required fields are marked *