publicclass MainClass {
publicstaticvoid main(String[] argv) {
char ch = '\u8243';
short s = ch; // Error
short x = (short) ch; // ok
System.out.println();
}
}
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from char to short
at MainClass.main(MainClass.java:4)