Post

🌒 Eclipse Java IDE
🌒 Eclipse Java IDE@EclipseJavaIDE·
Switches are fun. What's the output?
🌒 Eclipse Java IDE tweet media
English
64
43
165
0
Laurent CARON
Laurent CARON@laurent_caron·
@EclipseJavaIDE 020 (octal) = 16 and no break in case statements > output is 'ABC'
English
0
1
3
0
Neden
Neden@Neden60924023·
@EclipseJavaIDE A B C there is no break and pritln
English
0
0
0
0
medmedin2014
medmedin2014@medmedin2017·
@EclipseJavaIDE The result is AB because 020 is the octal representation of decimal number 16.
English
0
0
0
0
Giovanni
Giovanni@giovanni_n4·
@EclipseJavaIDE output is ABC since 16 will match its octal representation 020, and no 'break' statements so the other two cases are executed as well
English
0
0
0
0
Поделиться