Programming Languages Java Objective
Mar 01, 2013

Which is cause a compiler error?

Choose the correct answer:
A) int[ ] scores = {3, 5, 7};
B) int [ ][ ] scores = {2,7,6}, {9,3,45};
C) String cats[ ] = { "hello", "world!" };
D) boolean results[ ] = new boolean [] {true, false, true};
Detailed Explanation

Option B is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback