Closed skorsky closed 9 years ago
See http://stackoverflow.com/questions/27122610/why-does-the-java-api-use-int-instead-of-short-or-byte.
short x = 1; short y = 2; short z = x + y; // compile error! short z = (short) (x + y); // addition is forces auto boxing to int.
See http://stackoverflow.com/questions/27122610/why-does-the-java-api-use-int-instead-of-short-or-byte.
short x = 1; short y = 2; short z = x + y; // compile error! short z = (short) (x + y); // addition is forces auto boxing to int.