public class MainClass { public static void main(String[] argv) { int m = 3; long n = 1; long x = Math.max(m, n); int y = Math.max(m, (int) n); } }