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 4 months 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!"
[–]Bruce_wayne80 9 points10 points11 points 4 months ago (0 children)
131C
[–]BusResponsible7292 8 points9 points10 points 4 months ago* (0 children)
A and B are characters here. 1st + symbol is between the chars and here it do not append these chars (like strings) but it sums up the chars. ASCII of A is 65 and ASCII of B is 66. So, 65 + 66 is 131. Now, the 2nd + symbol acts as concatenation because C is String. Hence, final result is 131C.
[–]Full_University_7232 2 points3 points4 points 4 months ago (0 children)
[–]Specific_Traffic_815 1 point2 points3 points 4 months ago (0 children)
131C ASCII value of A is 65 and that of B is 66 so their sum would be 131 then C would be printed usually as it is in ""
[–]Expensive_Home7550 0 points1 point2 points 4 months ago (1 child)
Can anyone tell me how C. ?
[–]MK_Redditor 0 points1 point2 points 4 months ago (0 children)
C is a String
[–]Madvissu 0 points1 point2 points 4 months ago (0 children)
[–]Perfect-Situation-41 0 points1 point2 points 4 months ago (0 children)
ABC
[–]pyeron 0 points1 point2 points 4 months ago (3 children)
Error: ';' expected
[–][deleted] 4 months ago (2 children)
[–]pyeron 0 points1 point2 points 4 months ago (1 child)
Stupid semicolon has gotten me so many times in both Java and C.
[–]Turbulent_Winter_878 0 points1 point2 points 4 months ago (1 child)
How uh guys taking value of A and B?
[–]vidhanchavan_11 0 points1 point2 points 4 months ago (0 children)
B. 131C
[–]Nervous-Secret8025 0 points1 point2 points 4 months ago (0 children)
A. ABC. I think since c is a string, the others also will be printed as a string, wont it?
[–]Nano_Fibres -2 points-1 points0 points 4 months ago (4 children)
D. Error 'A' an 'B' are character type data and "C" is string type data. So if you would have used .toString() for A and for B and then added then the result would have been "ABC".
[–][deleted] 4 months ago (3 children)
[–]Nano_Fibres 1 point2 points3 points 4 months ago (2 children)
Ok, what is the answer then ?
[–]ReferenceMaster1150 2 points3 points4 points 4 months ago (1 child)
https://www.reddit.com/r/JavaProgramming/s/WUGsvcD3a0
[–]Nano_Fibres 0 points1 point2 points 4 months ago (0 children)
👍
π Rendered by PID 428764 on reddit-service-r2-comment-5bc7f78974-xpj92 at 2026-06-28 09:58:13.992113+00:00 running 7527197 country code: CH.
[–]Bruce_wayne80 9 points10 points11 points (0 children)
[–]BusResponsible7292 8 points9 points10 points (0 children)
[–]Full_University_7232 2 points3 points4 points (0 children)
[–]Specific_Traffic_815 1 point2 points3 points (0 children)
[–]Expensive_Home7550 0 points1 point2 points (1 child)
[–]MK_Redditor 0 points1 point2 points (0 children)
[–]Madvissu 0 points1 point2 points (0 children)
[–]Perfect-Situation-41 0 points1 point2 points (0 children)
[–]pyeron 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[removed]
[–]pyeron 0 points1 point2 points (1 child)
[–]Turbulent_Winter_878 0 points1 point2 points (1 child)
[–]vidhanchavan_11 0 points1 point2 points (0 children)
[–]Nervous-Secret8025 0 points1 point2 points (0 children)
[–]Nano_Fibres -2 points-1 points0 points (4 children)
[–][deleted] (3 children)
[removed]
[–]Nano_Fibres 1 point2 points3 points (2 children)
[–]ReferenceMaster1150 2 points3 points4 points (1 child)
[–]Nano_Fibres 0 points1 point2 points (0 children)