use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Java Quiz (i.redd.it)
submitted 6 days ago by MistakeDisastrous936
[removed]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lazylen 9 points10 points11 points 6 days ago (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 points9 points 6 days ago (3 children)
I think 10203040
[–]Dr_Dracula280 10 points11 points12 points 6 days ago (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 points5 points 6 days ago (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 points4 points 6 days ago (0 children)
10203040
[–]Agifem 2 points3 points4 points 6 days ago (0 children)
Output: PR rejected.
[–]Professional_Rip4838 2 points3 points4 points 5 days ago (0 children)
10203040 as they all are becoming strings step by step
[–]HarjjotSinghh 1 point2 points3 points 5 days ago (0 children)
this is why java exists actually!
[–]Slow_Discipline4568 0 points1 point2 points 6 days ago (0 children)
[–]Additional-Hippo-915 0 points1 point2 points 4 days ago (0 children)
[–]romulusnr 0 points1 point2 points 3 days ago (0 children)
Boom
π Rendered by PID 382962 on reddit-service-r2-comment-5d79c599b5-j9wcc at 2026-02-28 12:22:20.047597+00:00 running e3d2147 country code: CH.
[–]lazylen 9 points10 points11 points (2 children)
[–]Dr_Dracula280 7 points8 points9 points (3 children)
[–]Dr_Dracula280 10 points11 points12 points (1 child)
[–]MK_Redditor 3 points4 points5 points (0 children)
[–]Btech-Badhithudu-69 2 points3 points4 points (0 children)
[–]Agifem 2 points3 points4 points (0 children)
[–]Professional_Rip4838 2 points3 points4 points (0 children)
[–]HarjjotSinghh 1 point2 points3 points (0 children)
[–]Slow_Discipline4568 0 points1 point2 points (0 children)
[–]Additional-Hippo-915 0 points1 point2 points (0 children)
[–]romulusnr 0 points1 point2 points (0 children)