1.

In the below code, which call to num() method is appropriate?

class Result
{

public static int num(int ...x)
{
return;
}
static void main(String args[])
{
num(10);
num(10,20);
num(10,20,30);
num(10,20,30,40);
}
}

A. only num(10,20)
B. only num(10)
C. only num(10) & num(10,20)
D. all of the mentioned
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs