Image

Imagepopcorn09 wrote in Imagejava_dev 😯confused

Negative shift distance?

public class NegativeShift {
  public static void main(String[] args) {
    System.out.print(8 << -1);
  }
}


What would be the output? And how does this work?