Can I use String in switch case in Java? – Enpatika
Skip to content
Yeni Enpatika Logo

Enpatika

En Güncel Oyun ve Sistem Gereksinimleri Sitesi

  • Ana Sayfa
  • Gizlilik Politikası
  • Telif Hakları
  • İletişim
  • taraftar tv apk

Can I use String in switch case in Java?

Can you switch case a String?

1 April 2022 Enpatika.com Genel

The switch statement compares the String object in its expression with the expressions associated with each case label as if it were using the String. equals method; consequently, the comparison of String objects in switch statements is case sensitive .

Read more

Can I use String in switch case in Java?

1 April 2022 Enpatika.com Genel

Yes, we can use a switch statement with Strings in Java .5 Tem 2019

Read more
WordPress Theme: Gridbox by ThemeZee.