posted 24 years ago
Hi,
The type of each of the operands in Shift operation must be primitive integral type(short,byte,int,long), otherwise compiler error occurs. 1 & 3 use a String & a double which are not allowed. so the ans 2 & 4 are correct. Hope it helps.
Your options are not clear. I had the same problem with one of my Question & Maha anna told me that whenever we use relational operators we should leave space before & after them. otherwise they mess up.
Thanks,
Kiran.