The output I calculated from right shifting the 2's complement of 20 and then converting the result to decimal does not match the output. Why does the code below generate such unexpected output?
class OperatorExample{
public static void main(String args[]){
System.out.println(-20>>>2);
}
}
output: 1073741819