Card 6 / 32: class TarsierX { static String s = "-"; public static void main(String[] args) { go(); System.out.println(s); } { go(); } static { go(); } static void go() { s+= "s"; } } What is the result?
A)
ss
B)
-ss
C)
-s
D)
s
Answer:
B) -ss
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|