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 I have created jOOQ. Follow me on blog.jooq.org