Post

🌒 Eclipse Java IDE
🌒 Eclipse Java IDE@EclipseJavaIDE·
Java 12 will make changes to the switch statement. It can now be assigned to variables so the snippet below compiles. What is the output though?
🌒 Eclipse Java IDE tweet media
English
36
64
235
0
Ahmed Ghannam
Ahmed Ghannam@FieryPhoenix7·
@EclipseJavaIDE Looking forward to this one. So much more elegant than the current approach.
English
0
0
5
0
Jitendra
Jitendra@Jitendra4806·
@EclipseJavaIDE @java Statement doesn't say anything about break however it is assigning value to variable, I will consider break is not required, so it is false
English
0
0
0
0
Eqi
Eqi@moxspoy·
Pulo Gadung, Indonesia 🇮🇩 English
0
0
0
0
Josefo αδ
Josefo αδ@josefoamdz·
@EclipseJavaIDE Old Java tells me true, Java 12 seems that no break could not be necessary so false is the answer.
English
0
0
0
0
Teilen