About Question enthuware.ocajp.i.v8.2.891 :
Posted: Wed Feb 08, 2017 11:55 am
From reading the Oracle docs regarding primitive default initialization, local variables (method variables) are not given a default value. Is that why:
for(int k; k<0; k++)
is incorrect? Is a for loop considered a method?
for(int k; k<0; k++)
is incorrect? Is a for loop considered a method?