Hacker News new | ask | show | jobs
by badlogic 3979 days ago
Only a look at the resulting bytecode will tell you what happens in your scenarios :)
1 comments

No need for bytecode when a stacktrace will do :-)

    public static void main(String... args) {
        Runnable r = () -> {
            ((Object)null).toString(); // kaboom
        };
        r.run();
    }