Given the following method, which line of code correctly calls the method and copies the returned value into the memory of a local variable? Assuming all variables used have already been declared and initialized
public static double difference(double a, double b){ return abs(a-b);}
Question options:
diff = difference(double x, double y);
double difference(double a, double b)
difference(x,y);
diff = difference(x,y);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here