Hacker News new | ask | show | jobs
by MBlume 4892 days ago
Java? Everything (except for built-in types) is nullable in Java...
1 comments

pcwalton's point is that you must be explicit about initializing variables:

  int foo = 1;
  int bar;
  System.out.println(foo + bar);  // compile error: variable bar might not have been initialized