In C a static variable or a variable in a file scope is initialized to 0 when declared and a variable declared in a function that is not initialized has random data. Does this happen in Java too somehow?
Note: I refer only to primitive types not objects.