Consider the following class definition: public class SomeClass { public static void doSomething(int n) { } Which of the following are acceptable method calls? int[] a = {4, 5, 6}; int number = 2;...


Consider the following class definition:


public class SomeClass


{



public static void doSomething(int n)



{



}



Which of the following are acceptable method calls?


int[] a = {4, 5, 6};


int number = 2;


SomeClass.doSomething(number);


SomeClass.doSomething(a[2]);


SomeClass.doSomething(a[3]);


SomeClass.doSomething(a[number]);


SomeClass.doSomething(a);



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here