hi everyone,
this present problem had caused a lot of confusion during my
preparation for
SCJP exam and thought it would be useful to other
aspirants of SCJP exam.
consider the code,
1. class A1{
2. // char a = '\u00e';
3. // char b = '\u000a';
4. }
5. class A2{
6. /* char b = '\u00e'; */
7. /* char c = '\u000a'; */
8. }
can anyone explain why the following points about the above given code is
true.
--> line 2 causes compiler error
--> line 3 causes compiler error
--> line 6 causes compiler error
--> line 7 compiles and runs fine