Hi,
I got one ques. frm Marcus Green Mock
Test that says
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;
ans given is
2)j= i<<j;
4)j=i<<l;
I can understand option 2)
but in option 4) how a int(32 bits) can be shifted to 99 places?
is it something wrong with my understanding please correct me?