Java Reference
In-Depth Information
< Day Day Up >
Puzzle 45: Exhausting Workout
This puzzle tests your knowledge of recursion. What does this program do?
public class Workout {
public static void main(String[] args) {
workHard();
System.out.println("It's nap time.");
}
private static void workHard() {
try {
workHard();
} finally {
workHard();
}
}
}
 
 
Search WWH ::




Custom Search