The following compiles and produces an output. Can you explain why?
Here is a hint for a simpler example.
char ch = 'A';
ch *= 1.5;
System.out.println(ch); // prints 'a'
Here is a hint for a simpler example.
byte b = 100;
b /= 2.5;
System.out.println(b); // prints 40
No comments:
Post a Comment