Computer Science, asked by monithsk, 8 months ago

2. Write the output of the following if the actual parameters passed to
the function are: x = java and y =JAVA
void test(String x, String y)
{
if(x.compareTo(y)>0)
System.out.println(x);
else
System.out.println();
}​

Answers

Answered by AnindaBasu
1

Answer:

output will be java for this program

Similar questions