Which of the following Array declaration statement is illegal
Answers
Answer:
class Test {
class Test { public void methodA(int i) {
class Test { public void methodA(int i) { System.out.println(i);
class Test { public void methodA(int i) { System.out.println(i); }
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) {
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1);
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1;
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1; }
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1; } public static void main(String args[]) {
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1; } public static void main(String args[]) { Test X = new Test();
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1; } public static void main(String args[]) { Test X = new Test(); X.methodA(5);
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1; } public static void main(String args[]) { Test X = new Test(); X.methodA(5); }
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1; } public static void main(String args[]) { Test X = new Test(); X.methodA(5); }}
class Test { public void methodA(int i) { System.out.println(i); } public int methodA(int i) { System.out.println(i+1); return i+1; } public static void main(String args[]) { Test X = new Test(); X.methodA(5); }}
Answer:
here is your answer
Explanation:
I hope my answer help You...