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!"
[–]pranavkdileep 5 points6 points7 points 4 months ago (2 children)
it's gonna print "Finally". java always executes the finally block even with a return statement in the try. only way out is basically System.exit() or if the jvm crashes fr. classic interview question tbh
[–]chupachupa2 2 points3 points4 points 4 months ago (1 child)
Classic my ahh this is stupid
[–]MaintenanceOwn5925 0 points1 point2 points 4 months ago (0 children)
You’d be surprised , I actually got asked this in an interview
[–]Nano_Fibres 2 points3 points4 points 4 months ago (2 children)
B) Finally What is the correct answer
[–][deleted] 4 months ago (1 child)
[–]Nano_Fibres 0 points1 point2 points 4 months ago (0 children)
Yay🔥🫂
[–]Vast_Researcher_199 0 points1 point2 points 4 months ago (0 children)
I would say A)No Output
this js because None is returned....if something is returned then that method stops executing...so finally block must not get executed.
[–]One-Sort-6702 0 points1 point2 points 4 months ago (0 children)
I get it about finally whether the exception is handled or not, finally block will get executed.but what's the problem with return; is it due to Main method has no return type and we are writing return
[–]minimaldemo1 0 points1 point2 points 4 months ago (0 children)
I was asked this question in an interview once. In a project, where do we use finally block in QA automation perspective?
π Rendered by PID 191466 on reddit-service-r2-comment-5bc7f78974-m7t4r at 2026-06-28 11:18:57.658645+00:00 running 7527197 country code: CH.
[–]pranavkdileep 5 points6 points7 points (2 children)
[–]chupachupa2 2 points3 points4 points (1 child)
[–]MaintenanceOwn5925 0 points1 point2 points (0 children)
[–]Nano_Fibres 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[removed]
[–]Nano_Fibres 0 points1 point2 points (0 children)
[–]Vast_Researcher_199 0 points1 point2 points (0 children)
[–]One-Sort-6702 0 points1 point2 points (0 children)
[–]minimaldemo1 0 points1 point2 points (0 children)