HI guys, given this codefrom Glenn, Mitchell.
OCAJP Oracle Certified Associate
Java SE 8 Programmer Practice Exams (Kindle Locations 10550-10552). Enthuware. Kindle Edition,
apparently compiles because a char (b) is essentially a number. SO that got me thinking and I tried something:
That is essentially the same as above, but it doesn't compile. I mean a char is 16bits and a byte is only 8 so fair enough if it doesn't compile, but then why does it work in the switch statement?