A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
Programmer Certification (SCJP/OCPJP)
'\u000d' and '\u000a' are not valid ?
Joined: Dec 04, 2002
Jan 01, 2003 02:08:00
why '\u000d' and '\u000a' are not valid ?
If char c='\n' is possible why can't
char c='\u000a', when both have same int value 10...?
--------------<br />Prashant<br />SCJP-91%
Joined: Oct 17, 2001
Jan 01, 2003 08:39:00
check out the
. It answers your question.
I agree. Here's the link:
subject: '\u000d' and '\u000a' are not valid ?
Escape sequences and compiler errors
char value assignment
2 questions from Mock Exams.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015