It's not a secret anymore!*
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
JavaRanch » Java Forums » Other » Blog around the Campfire
Bookmark "Rare Uses of a "ControlFlowException"" Watch "Rare Uses of a "ControlFlowException"" New topic
Author

Rare Uses of a "ControlFlowException"

Lukas Eder
Ranch Hand

Joined: Jul 22, 2013
Posts: 41
    
    4

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 I have created jOOQ. Follow me on blog.jooq.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rare Uses of a "ControlFlowException"
 
Similar Threads
exception handling
Spring Web Flow - How efficient is it?
conventional program control
K&B on labeled break
""Do not use exceptions for flow control", huh?