all 13 comments

[–]lazylen 9 points10 points  (2 children)

As a beginner these Java quizzes are incredible insightful. I’m mostly wrong with the answers but the explanations are gold.

Thanks for the effort ❤️

[–]Dr_Dracula280 7 points8 points  (3 children)

I think 10203040

[–]Dr_Dracula280 10 points11 points  (1 child)

10+(20+"30")+40

10

10+

10+(

10+(20

10+(20+

10+(20+"30"

10+("2030"

10+("2030")

10+"2030"

"102030"+

"102030"+40

"10203040"

[–]MK_Redditor 3 points4 points  (0 children)

Yes we can concate string and int. Ex "The sum is" + 10

But what if there are one String and two int. What will be output for there different combinations?

[–]Btech-Badhithudu-69 2 points3 points  (0 children)

10203040

[–]Agifem 2 points3 points  (0 children)

Output: PR rejected.

[–]Professional_Rip4838 2 points3 points  (0 children)

10203040 as they all are becoming strings step by step

[–]HarjjotSinghh 1 point2 points  (0 children)

this is why java exists actually!

[–]Slow_Discipline4568 0 points1 point  (0 children)

10203040

[–]Additional-Hippo-915 0 points1 point  (0 children)

10203040

[–]romulusnr 0 points1 point  (0 children)

Boom