I am learning java and I found out that in java char ranges from 0-65536 and java uses Unicode to represent characters. So, I run the following code to see what all the characters are:
class A{
public static void main(String args[]){
char x=0;
for(int i=0;i<65536;i++){
x++;
System.out.println(i + "th character is: " + x);
}
}
}
what I found is :-
First 126 characters are same as ASCII characters.
After 126th character it is just showing '?' mark.
Output:-
...
127th character is: ?
128th character is: ?
129th character is: ?
130th character is: ?
131th character is: ?
132th character is: ?
133th character is: ?
...
65534th character is: ?
My question is why it is showing '?' mark instead of the Unicode characters.