Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Blog around the Campfire and the fly likes Rare Uses of a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Other » Blog around the Campfire
Bookmark "Rare Uses of a "ControlFlowException"" Watch "Rare Uses of a "ControlFlowException"" New topic

Rare Uses of a "ControlFlowException"

Lukas Eder
Ranch Hand

Joined: Jul 22, 2013
Posts: 48

Rare Uses of a "ControlFlowException"

Control flows are a "relict" from imperative programming, which has leaked into various other programming paradigms, including Java’s object oriented paradigm. Apart from the useful and ubiquitous branch and loop structures, there are also primitives (e.g. GOTO) and non-locals (e.g. exceptions).

This article gives some insight into various ways of simulating GOTO and implementing control flow signalling using exceptions. Only for those who dare challenge Java best practices!

When Java and SQL work together, great software can evolve. That's why we have created jOOQ. Follow me on
I agree. Here's the link:
subject: Rare Uses of a "ControlFlowException"
It's not a secret anymore!