public class Caster { public static void main(String[] args) { Integer o = (Integer) new Object(); out(o); } static void out(Object o) { System.out.println("Object out"); } static void out(Integer i) { System.out.println("Integer out"); }}
View my complete profile