Instance variables represent the object on the heap while local variables are on the stack. To initialize local variables java would have to insert code at the top of every method to update those stack-resident variables, which means a memory write for every local variable. The cummulative effect would be very signficant and it's usually redundant: locals are always set before they are used.
posted 12 years ago
Thanks a lot! for the response
"I can resist everything except temptation"
Something about .... going for a swim. With this tiny ad ...