Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
What is String in Swtich feature in JDK7 example
Have you ever feel that String should be used in switch cases as like int and char? JDK 7 has made an important enhancement in there support of Stringhttp://javarevisited.blogspot.com/2011/08/string-switch-case-jdk7-example.html
Total Hits: 2634
Total Votes: 24 votes
Average Rating: 2.5 out of 5
Category: JAVA/Core JAVA
Description:
Have you ever feel that String should be used in switch cases as like int and char? JDK 7 has made an important enhancement in there support of String, now you can use String in switch and case statement, No doubt String is most widely used type in Java and in my opinion they should have made this enhancement long back when they provided support for enum in java and allowed enum to be used in switch statement. In this java tutorial we will see how we can use String inside switch and case statement in JDK 7.Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |




16.67%

16.67%

16.67%

16.67%

16.67%