What will happen when you compile and run the following code:
public class SomeClass
{
public static void main(final String args[])
{
method(arguments);
}
public void method(String[] args)
{
System.out.println(args);
System.out.println(args[1]);
}
}
A) Error: "Cannot pass final object to method with non-final formal parameter."
B) Error: "Main should be declared main(String[] args)."
C) Error: "Method 'method' cannot be referenced from a static context."
D) Error: "Method 'method' cannot be referenced from a non-static context."