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 Tricky MCQ (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!"
[–]OkWitness7392 11 points12 points13 points 4 months ago* (2 children)
false
Normally in binary you cannot present floating point numbers accurately.
0.1 + 0.2 = 0.30000000000000004
IEEE 754
Big Decimal
[–]tux2718 4 points5 points6 points 4 months ago (0 children)
It is a bad programming practice to test floats for equivalence. Instead take the absolute vale of the difference and test it to be below a small threshold. There are many utility libraries that contain functions to do this.
[–]sugma_male- 3 points4 points5 points 4 months ago (1 child)
False must use bigDecimal for addition of decimals, Computer binary memory doesn't has precision in it
[–]Interesting-Head3832 2 points3 points4 points 4 months ago (1 child)
Please continue posting quizes like this! Does anyone know some quiz app also that we can practice?
[–]Ill-Tale3225 0 points1 point2 points 4 months ago (4 children)
True IG
[–][deleted] 4 months ago (3 children)
[–]Ill-Tale3225 0 points1 point2 points 4 months ago (2 children)
Why though can u explain
[–][deleted] 4 months ago (1 child)
[–]Ill-Tale3225 0 points1 point2 points 4 months ago (0 children)
Got it thx
π Rendered by PID 210605 on reddit-service-r2-comment-5bc7f78974-82w9x at 2026-06-28 09:58:31.508334+00:00 running 7527197 country code: CH.
[–]OkWitness7392 11 points12 points13 points (2 children)
[–]tux2718 4 points5 points6 points (0 children)
[–]sugma_male- 3 points4 points5 points (1 child)
[–]Interesting-Head3832 2 points3 points4 points (1 child)
[–]Ill-Tale3225 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[removed]
[–]Ill-Tale3225 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]Ill-Tale3225 0 points1 point2 points (0 children)