which two are valid signatures for the Java method reverse?

Given the function invocation expression ${my:reverse(“42”)}, and that the function reverse is
mapped into a Java method called reverse, which two are valid signatures for the Java method
reverse? (Choose two.)

Given the function invocation expression ${my:reverse(“42”)}, and that the function reverse is
mapped into a Java method called reverse, which two are valid signatures for the Java method
reverse? (Choose two.)

A.
public int reverse(String val)

B.
public String reverse(String val)

C.
public static int reverse(String val) D. public static String reverse(int val)

D.
private static double reverse(double val)

E.
public int reverse(String value, String name)

F.
public static int reverse(int value, String name)

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *