Question: 1-5 if possible, thanks. (For Data Structures) 1. Given the following int i,j-4; int[] a, b- 11, 2, 3; using picture to illustrate the difference

1-5 if possible, thanks. (For Data Structures)
 1-5 if possible, thanks. (For Data Structures) 1. Given the following

1. Given the following int i,j-4; int[] a, b- 11, 2, 3; using picture to illustrate the difference of the following statements 2. What is a state of an object? What is the state of a class? 3. When should we declare a method to be static? 4. Given assignment statement (a) Ifx and y are primitive variables, when w a compilation error? it generate (b) Ifx and y are reference variables and the statement is valid (no compilation error), how are the types of x and y related to each other? 5. Suppose you have the following function prototype and variable declaration: public void goop (int[ ] z) int [ ] x new int [10]; Which is the correct way to call the goop method with x as the argument .A. goop(x); .B. goop(x D; C. goop(x[10]); .D. goop(&x); E. goop(&x[ )

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!