Question 2 Analyze the code below Identify all of the illega

Question 2 Analyze the code below. Identify all of the illegal method calls and assignment statements. In your own words, in a sentence or two, for each illegal call or assignment, explain why it is illegal. You are welcome to compile this file to see what the compiler answer is You may also go and research the compiler errors. You might also want to read up on static, private, and public in Java. Ultimately, however, you must explain in your own words why you are getting that error. Some answers will be the same for different statements file: A2.java public class A2 H public static int u; private static int v; public int x; private int y; public void foo tt public static void far private void faz() t private static void fiz( file: B2. java public class B2 public void boo (A2 a) A2.foo() A2.far()

Solution

The illegal statements are

 Question 2 Analyze the code below. Identify all of the illegal method calls and assignment statements. In your own words, in a sentence or two, for each illega

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site