Question: Question 5. The following program contains 5 mistakes. Please find and name these mistakes. [20 points) public class Oops { public static void main(String[] args)

 Question 5. The following program contains 5 mistakes. Please find and

Question 5. The following program contains 5 mistakes. Please find and name these mistakes. [20 points) public class Oops { public static void main(String[] args) { int x; System.out.println("x is " + x); int x = 15.2; // set x to 15.2 System.out.println("x is now " + x); int y; // set y to 1 more than x y = int x + 1; System.out.println("x and y are " + x + and + y); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!