Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1076 :

Posted: Wed Jul 09, 2014 9:57 am
by kashyapa
Doesn't matter that the array is local or not, and instance or static, all types of arrays are get initialized to its default values ?

Re: About Question enthuware.ocajp.i.v7.2.1076 :

Posted: Wed Jul 09, 2014 10:03 am
by admin
Yes, if you create an array object, then all its elements are initialized appropriately as given in the explanation.

Re: About Question enthuware.ocajp.i.v7.2.1076 :

Posted: Wed Apr 20, 2016 7:27 am
by MUNISH JASWAL
Shouldn't there be "i++" INSTEAD OF "++i" in for loop?

Re: About Question enthuware.ocajp.i.v7.2.1076 :

Posted: Wed Apr 20, 2016 7:33 am
by admin
Why do you think so?

Re: About Question enthuware.ocajp.i.v7.2.1076 :

Posted: Sun Oct 29, 2017 6:13 pm
by Sergey
eh... i thought (until that moment) the iterations should be like this, because of ++i.

Code: Select all

1
2
3
4
5
6
7
8
9
10
But no, the first iteration however starts from 0. I must remember it.