Hi friends I have following.
ch\u0061r bala = '\u0061';
ch\141r bal = '\141';
ch\u0061r a = '\u0061' is working but ch\141r a1 = '\141' is nt taking as char in Java, both \u0061 and \141 are characters representing the character a.
In java, Unicode characters (ie \unnnn) may be used anywhere - either in source code or character/String literals, but octal literals (ie \nnn) may only be used in character/String literals.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With