Computer Science, asked by thisisaadil, 6 months ago

class MyClass { static int x = 7;int y = 2; public static void main(String args[ ]) { MyClass obj = new MyClass(); System.out.println(x); obj.sampleMethod(5); int a= 6; System.out.println(a); } void sampleMethod(int n) { System.out.println(n); System.out.println(y); }} State the name and value of the: (i) method argument or argument variable. (ii) class variable. (iii) local variable. (iv) instance variable.​

Answers

Answered by shreykalra650
0

Answer:

the answer will be 6 correct answer. h ye

Similar questions