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] =](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1707/2/9/1/73765c33459185961707291736815.jpg)
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'; // r1 // r2 ticTacToe [3] [1] = 'X'; System.out.println(ticTacToe. length + "in a row!"); // r3
Step by Step Solution
3.50 Rating (143 Votes )
There are 3 Steps involved in it
The first line that would prevent this code from compiling and running without error i... View full answer
Get step-by-step solutions from verified subject matter experts
