[size=1em]1
[size=1em]2
[size=1em]3
[size=1em]4
[size=1em]5
[size=1em]6
[size=1em]7
| [size=1em][size=1em]String str = null; // null can be assigned to String
[size=1em]Integer itr = null; // you can assign null to Integer also
[size=1em]Double dbl = null; // null can also be assigned to Double
[size=1em]
[size=1em]String myStr = (String) null; // null can be type cast to String
[size=1em]Integer myItr = (Integer) null; // it can also be type casted to Integer
[size=1em]Double myDbl = (Double) null; // yes it's possible, no error
|