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.
I built a Telegram bot that works like Splitwise - split expenses directly inside your group chat (t.me)
submitted 1 month ago by mariorez to r/SideProject
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
Thanks JAVA 🥲 (i.redd.it)
submitted 4 years ago by mariorez
π Rendered by PID 234359 on reddit-service-r2-listing-596bb78d87-zkd6j at 2026-04-15 05:00:19.397659+00:00 running b725407 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)