public class MainClass {
public static void main(String[] argv) {
System.out.println();
}
public static int calc(int a, int b) {
System.out.println("int");
return a + b;
}
public static int calc(int a, int b) throws Exception {
throw new Exception("My exception");
System.out.println("float");
return a + b;
}
}
Duplicate method calc(int, int) in type MainClass