File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes what   Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "what   "# HexDigits "?" Watch "what   "# HexDigits "?" New topic

what "# HexDigits "?

Ranch Hand

Joined: Dec 16, 2005
Posts: 103
I know the "0x HexDigits". but I don't know about "# HexDigits".
Pls give me some example to understand.

Thanks, Raghu.K
marc weber

Joined: Aug 31, 2004
Posts: 11343

Originally posted by RAGU KANNAN:
I know the "0x HexDigits". but I don't know about "# HexDigits"...

Hexadecimal values are represented differently depending on the context. See Wikipedia - Hexadecimal for some examples.

Hexadecimal representation prefixed by # is used in HTML color designations. But in Java, hexadecimals are prefixed by 0x. So I would not expect to see # used on the exam.
[ August 17, 2006: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
We need more information. What's the context of this question? The Formatter class?

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: what "# HexDigits "?
It's not a secret anymore!