Birla Murugesan wrote:How to we check if primitives like long,int becomes null?
A primitive variable can never be null in the sense that it's void, that is holds nothing. It will always hold some value.
If you by null mean 0 then you just check if the variable holds a 0 using the == operator.