3 ms·
pcwalton's point is that you must be explicit about initializing variables: int foo = 1; int bar; System.out.println(foo + bar); // compile error: varia
by kibwen 14y ago
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