$ 0 0 The first case are a double and an int, not a Double and an Integer, so it returns a double which then gets autoboxed to a Double