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);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here