This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes char\u0063='\u0063' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "char\u0063= Watch "char\u0063= New topic
Author

char\u0063='\u0063'

weiliu lili
Ranch Hand

Joined: Apr 11, 2002
Posts: 46
I 've never seen this kind of declaration ,but it is right,could anyone give a bit explanation?
Jamal Hasanov
Ranch Hand

Joined: Jan 08, 2002
Posts: 411
Weiliu,
\u0063 in Unicode is character 'c'. You can use Unicode inside your code. Therefore
char \u0063='\u0063';
is
char c = 'c';
Another sample,
ch\u0061r c = 'x';
is
char c = 'x';
That's all.
Jamal Hasanov
www.j-think.com
 
jQuery in Action, 2nd edition
 
subject: char\u0063='\u0063'
 
Similar Threads
FileOutputStream and identifier \u0063
\u0063 is a indetifier
Unreadable code ?!
This thread is for topics not covered by K&B 1.4 book
char literals