Discussion :: Arrays - General Questions (Q.No.3)
|Shweta said: (Jul 25, 2014)|
|Arrays index start to zero and that's why arrays default value is zero.|
|Gloops said: (Aug 3, 2014)|
|Well when declaring intMyArr = new int[1,2].
I obtain intMyArr[1, 1] = 0.
But @Shweta, how do you verify the default value of the index ?
In the execution window, try :
Syntax error ...
|Hussain said: (Nov 4, 2014)|
|Whenever a object is created if the object has instance variables then they are initialized to default values.
The default value for string is null and for integer is 0, so..on..
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.