Bytes in Java range from -128 to 127. If over 127 they overflow. So I assigned 128 to a `byte` variable to know how overflow work, but the compiler shows a error message: "Type mismatch: cannot convert from int to byte".

Why do I get a compiler error instead of it overflowing?

![enter image description here](https://i.stack.imgur.com/2UEOr.png)