Почему так по разному работают 2 вроде бы одинаковых кода? public class Solution { public static void main(String[] args) { double d = (short) 2.50256e2d; char c = (byte) 'd'; System.out.println("result:" +c); } } public class Solution { public static void main(String[] args) { short number = 9; char zero = '0'; int nine = (zero + number); System.out.println((char)nine); } }