|
![]() |
LOOKING FORWARD IT.<BR>DO IT.<BR>GET IT.<BR>
Originally posted by wei ma:
[B]
I know it must be some thing with the 'u000A' unicode. Since the unicode is processed very early by the compiler, I guess you code is really
//char a =
; //
because the line feed is interrupted by the compiler before the assignment.
What I am not sure is I typed the code as I thought
and it compiles OK. Anyone has a better idea?
[/B]
Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum
Originally posted by Vanitha Sugumaran:
Thanks for your reply.
I understand, this will cause error,
char a = '\u000A';
what is happening when we comment the line that has unicode value?
Vanitha.
Ashik Uzzaman
Engineering Manager, Marqeta, Oakland, CA, USA
Ashik Uzzaman
Engineering Manager, Marqeta, Oakland, CA, USA
Ashik Uzzaman
Engineering Manager, Marqeta, Oakland, CA, USA
Hi all,
I think that the code will look like this:
public class ADirtyOne {
//char a = '
'; //(1)
}
and that's what makes the compiler error.
please correct me if I'm wrong.
- eric
Dinner will be steamed monkey heads with a side of tiny ads.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|