This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes char assignment 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 "char assignment" Watch "char assignment" New topic

char assignment

Soni Prasad
Ranch Hand

Joined: Mar 09, 2005
Posts: 97
public class ADirtyOne
char a = '\u000A';

will complain about illegal character assignment. Why???

SCJP 1.4, SCBCD 1.3
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Search this forum fo u000a or check our FAQ

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: char assignment
It's not a secret anymore!