Thanks Guys for the reply. I found the similar post.
Here is a piece that I would like to know how is it happening? Please help me here.
Nikos’ Java blog
Both result in Incompatible types compile error.
If we take q1 as <Number> then q2 can be <Number> too. So will not the assignment be a valid one.
In other case when q1 is <Integer> then q2 can also be <integer>.
I am little lost here so I may be sounding that way.