Skip to content

Instantly share code, notes, and snippets.

Created September 12, 2018 15:52
What would you like to do?
Java Puzzle 6 (spot the bug if one exists)
public class Puzzle6 {
public static void main(String[] args) {
private static boolean getResult() {
try {
return true;
} finally {
return false;
Copy link

Adapted from Java Puzzlers: Traps, Pitfalls, and Corner Cases - Puzzle #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment