What does this statement print?

System.out.println(“bc”+2+3)

1 answer

bc23
because the string is evaluated first, setting the expression type.

print(2+3+"bc") would print 5bc
you know, you could always just execute the statement ...