I am struggling to understand the affect casting has on numbers.....char = "0", short = 9, and when you add them together you get the int 57.....Can someone help explain what is exactly happening in the background?
package com.codegym.task.task10.task1004;
/*
Task No. 4 about integer type conversions
*/
public class Solution {
public static void main(String[] args) {
short number = 9;
char zero = '0';
int nine = (zero + number);
System.out.println(nine);
}
}