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
3
Explanation:
The Java compiler doesn't care about the names of the variables passed in as arguments of ...
Similar questions
Social Sciences,
5 months ago
History,
5 months ago
CBSE BOARD XII,
11 months ago
English,
11 months ago