This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, This is the question from marcus Which of the following will compile without error? String s = "Hello"; long l = 99; double d = 1.11; int i = 1; int j = 0; The answer is j = i << j and j = i << l I understood the first answer j = i << j. But why is the answer j = i << l correct? I thought that b'coz of arithmetic promotion, i << l is promoted to long & how does it fit into j? Can anybody please help me with this? Thanks rubna [This message has been edited by Jim Yingst (edited July 10, 2000).]