I have some questions regarding arrays in java:
How many objects are created in the following expressions?
(a) new int[0]
: There is one object created, an array of size 0.???
(b) new int[2][2]
: There is one object created, an array with 2 rows and columns.???
(c) new int[2][]
: There is no object created???
I was wondering if my solutions next to the expressions are correct. If not, hopefuly you can help and give me some explanation about them. I don't really get what im supposed to do.
Thanks in advance!