When you allocate resources for a local variable,
Java doesn't write a value into the memory. The reason you get an error is because Java makes sure you give it a value before you use it. Sun realized that this can be a difficult problem to diagnose in C code, because you don't get help from the compiler, so they decided to check it at compile time.