Person[] zhang_warp = new Person[1];
Person wang_warp[] = new Person[1];
Both declare an array of Person. What are they different?
i**p 发帖数: 902
2
Got the answer.
Declaring an array of object references:
Ferrari[] Ferraris; // Recommended
Ferrari Ferraris[]; // Legal but less readable
【在 i**p 的大作中提到】 : Person[] zhang_warp = new Person[1]; : Person wang_warp[] = new Person[1]; : Both declare an array of Person. What are they different?