why we can assign both int value and a char value to Character Wrapper type. Autoboxing means boxing for the corresponding wrapper but Character is not the corresponding wrapper of int. It is Integer
why both of these statements are possible
Character character = 'a';
Character character2 = 3;
It is treated as an
ASCII
value, if you assign int value to Character.Below 4 approach result in same output.
Note: You can refer this
ASCII Table