Question: Which statement(s) contain the error(s)? Indicate the statement number, explain the reason and correct the error(s). 4 public class q2_whatError { 5 6 public

Which statement(s) contain the error(s)? Indicate the statement number, explain the reason and correct the error(s). 4 public class q2_whatError { 5 6 public static void main(String[] args) { 7 8 9 System.out.println("x is " x); 10 11 12 13 14 int x; 15 16 17 18 19 20 21 } 22} int x = 3.14; System.out.println("x is now + x "); int y; y = int x + 1; System.out.println("x and y are " + x + and + y); z = 1+2; System.out.println(z);
Step by Step Solution
3.29 Rating (149 Votes )
There are 3 Steps involved in it
There are several errors in the provided code Lets identify and correct them 1 Error in line 9 java ... View full answer
Get step-by-step solutions from verified subject matter experts
