Which of the following will causes a compiler error?
a) int[] scores = {10,2,15};
b) int[][] scored = {5,11,22},{3,23,77};
c) String cats[] = {"Power","Speed","Light"};
d) boolean results[]=new boolean[] {true,false,false};
e) integer results[] = {new integer(8),new integer(2),new integer(15)};
a) int[] scores = {10,2,15};
b) int[][] scored = {5,11,22},{3,23,77};
c) String cats[] = {"Power","Speed","Light"};
d) boolean results[]=new boolean[] {true,false,false};
e) integer results[] = {new integer(8),new integer(2),new integer(15)};
No comments:
Post a Comment