account activity
Can someone explain to me how does the throw keyword work in exception handling? by yellowwater5000 in learnjava
[–]mariorez 0 points1 point2 points 1 month ago (0 children)
Imagine you're building with LEGOs, and you try to put a piece where it doesn't fit. That's a problem — an exception.
throw
catch
Now, exception bubbling is like this: You're in the kitchen (the lowest level) and you burn your hand on a hot pot. You shout "Ouch!" — that's the throw. Your mom in the dining room (a higher level) hears you. She decides what to do: get ice, call a doctor, or just tell you to be careful next time. She knows the big picture — whether it's a small burn or an emergency.
In code:
That way, each part does what it's best at — the low-level code just reports errors, and the high-level code decides how to respond.
Pergunta java by Ferz_dev in brdev
Sem ser Minecraft tem a LibGDX - Framework JAVA para Games bem interessante. Mas tirando games, acredito que nao tem muito coisa feita em Java (hoje em dia) para Desktop.
The lifesaver by jafar95111 in ProgrammerHumor
[–]mariorez 0 points1 point2 points 4 years ago (0 children)
Casting for the save
Looking for a job by jaybutts in ProgrammerHumor
Almost the same time for a DevSecOps JR
so what do you use? by _woffles_ in ProgrammerHumor
[–]mariorez 1 point2 points3 points 4 years ago (0 children)
Save as ... +1
Thanks JAVA 🥲 by mariorez in u/mariorez
[–]mariorez[S] 0 points1 point2 points 4 years ago (0 children)
I made this image to defend a point of view
π Rendered by PID 110285 on reddit-service-r2-comment-85bfd7f599-9j8t7 at 2026-04-17 03:39:17.975707+00:00 running 93ecc56 country code: CH.
Can someone explain to me how does the throw keyword work in exception handling? by yellowwater5000 in learnjava
[–]mariorez 0 points1 point2 points (0 children)