Question: Which is the first line to prevent this code from compiling and running without error? A. Line r1 B. Line r2 C. Line r3 D.

Which is the first line to prevent this code from compiling and running without error? 

char [][]ticTacToe = new char [3,3]; ticTacToe [1] [3] = 'X'; ticTacToe

A. Line r1

B. Line r2

C. Line r3

D. None of the above.

char [][]ticTacToe = new char [3,3]; ticTacToe [1] [3] = 'X'; ticTacToe [2] [2] = 'X'; ticTacToe [3] [1] = 'X'; System.out.println(ticTac Toe. length + " in a row!"); // r3 // r1 // r2

Step by Step Solution

3.30 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The first line that will cause this Java code to not compile and run without error is Li... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!