Analyze the following code: public class Test { public static void main(String[] args) { System.out.println(m(2)); } public static int m(int num) { return num; } public static void m(int num) { System.out.println(num); } }
The program runs and prints 2 once
The program runs and prints 2 twice
The program has a syntax error because the second m method is defined, but not invoked in the main method
The program has a syntax error because the two methods m have the same signature