Comment

Comment by crehn

While we're talking about terrible decisions, can you guess what the following code will print?

  String s = null;
  switch (s) {
      default:
          System.out.println("Hey");
  }
Hint: it will throw NullPointerException.
parent crehn 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton