Java · Exceptions, files and recursion
Some problems contain a smaller copy of themselves, and a method that calls itself solves them by handing the smaller copy on.