Computer Science, asked by clomarina0, 7 months ago

What is the output of the following program?

public class MysteryProgram {

public static void mystery(String foo, String bar, String zazz) {

System.out.println(zazz + " and " + foo + " like " + bar);

}

public static void main(String[] args) {

String foo = "peanuts";

String bar = "foo";

mystery(bar, foo, "John");

}

}

Ans: ?


and why?

Answers

Answered by gauravarduino
3

Explanation:

The Java compiler doesn't care about the names of the variables passed in as arguments of ...

Similar questions