my dog learned polymorphism
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Why cannot declare char c = '\u000a' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Why cannot declare char c = Watch "Why cannot declare char c = New topic

Why cannot declare char c = '\u000a'

Yan Bai
Ranch Hand

Joined: Jul 21, 2002
Posts: 125
And all the escape sequences except \b, \t and
\" cannot be declared. Why?

SCJP 1.4
Shishio San
Ranch Hand

Joined: Aug 29, 2002
Posts: 223
Check the FAQ

Whatever doesn't kill us ...<br />Is probably circling back for another try.<br />SCJP 1.4
I agree. Here's the link:
subject: Why cannot declare char c = '\u000a'
It's not a secret anymore!