Can we use switch statement with strings?



Can we use switch statement with strings?..

Answer / Shewali Chaudhary

Yes, Java 7 and later versions support using the switch statement with strings.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the internal implementation of set in java?

1 Answers  


Realized?

0 Answers  


Where we write javascript code in html page?

1 Answers  


What is boolean example?

1 Answers  


what is difference between perfom() & excute() ?

2 Answers   IBM,


Explain break statement and continue statement?

3 Answers  


what is unreachable code problem in multiple catch statements

3 Answers  


How much ram can a 64 bit processor theoretically?

1 Answers  


How to read and write image from a file ?

1 Answers  


Does Java support multiple Inheritance?

12 Answers  


Explain different types of thread priorities ?

1 Answers  


what is thread? : Java thread

1 Answers  


Categories