Why does this treat 100 as an int? Why not as a byte or short?
System.out.print(100);
I read this somewhere:
The compiler chooses the method that has the closest type of the argument in order of the implicit casting.
I don't understand what it means by "closest". Is it to do with the memory it takes in RAM or something?