Does switch Use equal?

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 we use words in switch case?

The break keyword in each case indicates the end of a particular case. If we do not put the break in each case then even though the specific case is executed, the switch will continue to execute all the cases until the end is reached. This should not happen; hence we always have to put break keyword in each case.

Read more