This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes q on character literals? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "q on character literals?" Watch "q on character literals?" New topic

q on character literals?

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
I encounter a no of q on using character literals.

are we supposed to know each of wht the character literals represent?

i was solving a mock exam where char a = '\000D'
and char b = '\000A'

After solving the exam, i came to know tht a represents new line and b represents carraige return.

I know only this Big Farms Need Red Tractors.

Do i need to know each letter's unicode representation?

SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
I know only this Big Farms Need Red Tractors.

Please explain.

Mike Gershman
SCJP 1.4, SCWCD in process
Saheed Adepoju
Ranch Hand

Joined: Jun 23, 2004
Posts: 267
Well i guess he's refering to the escape sequences! That's how Dan says we should remember the escape sequences.
Pretty neat eh!
SCJP 1.4
SCJD 1.4(preparing..)
Imagination is better than Knowledge.

Saheed Adepoju<br />SCJP 1.4<br />SCJD (B&S..In progress)
It is sorta covered in the JavaRanch Style Guide.
subject: q on character literals?
Similar Threads
Reg Character Literals
char literals
Character Literal
char literal