Consider the following program: Mark all of the lines of code that have a compilation error. For

Question:

Consider the following program:

public class Test { private static int x; private int y; public static void doIt() { } Test.x this.y } = X =

  1. Mark all of the lines of code that have a compilation error. 
  2. For each compilation-error line, explain why it is incorrect.
    For each compilation error, just provide the reason that the error occurs. Do not try to solve the problem by attempting to show a “fixed” version of the program.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: