Does switch case Use equal?

The switch statement when used with a String uses the equals() method to compare the given expression to each value in the case statement and is therefore case-sensitive and will throw a NullPointerException if the expression is null.22 Mar 2011

Sizin İçin Seçtik  DO case statements work with strings?

Leave a Reply

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