public class Test{ static void m1(Integer i){ System.out.println(1); } static void m1(Double d){ System.out.println(2); } static void m1(Number n){ System.out.println(4); } static void m1(Object o){ System.out.println(5); } public static void main(String[] args) { m1((short)12); } }