Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
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 "?