This week's book giveaway is in the Open Source Projects forum. We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line! See this thread for details.
Given the following variables which of the following lines will compile without error? String s = "Hello"; long l = 99; double d = 1.11; int i = 1; int j = 0;
1) j= i <<s;> 2) j= i<<j;> 3) j=i<<d;> 4)j=i<<l;> The answer is 2 & 4.But my answer is only 2.Can anyone explain why it is 4 too.Does'nt it apply arithmetic promotion here? Please help me. Thanks Sangi
Hi Sangi, The Possible answers that you have given are same. 1) j= i <2) j= i<3) j=i<4)j=i< please can you send us the correct possible answers. I am ready to help you. Thanks. /nirmal