There are some subtleties, especially when initializing arrays.
Java Code:
int [] a = {1,2,3}; // okayint [] x;x = {1,2,3}; // compiler error - must do it like x = new int[]{1,2,3}
No comments:
Post a Comment