When I am trying to compile the following code I am getting compile time errors for \u0010, \u0020 and \u0040. How ever \u0030 is fine. Can any one give any reason for this behaviour?
I agree that first 32 chars are non printable. But why the comiler is rejecting 0040 and accepting 0030?
If I give the same numbers with single quotes around every thing is fine.
public class A {
public static void main (
String [] args) {
char c = \u0010;
char c1 = \u0020;
char c2 = \u0030;
char c3 = \u0040;
System.out.println(c);
}
}