IvanLatysh wrote:
And a call:
setAge((Integer)null) - where I pass null reference as Integer.

this is not correct. just because you can cast null to any reference type does not mean that the type of your so called 'null value' is an Integer. The cast is only there to indicate the compiler which method to chose if it is overloaded. e.g. you might have setAge(Double age) and setAge(Integer age). if there's just the latter signature the cast is redundant and unnecessary.

regards
 marcel

Reply via email to