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 integer/numeric value of char 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 "integer/numeric value of char" Watch "integer/numeric value of char" New topic

integer/numeric value of char

pankaj agarwal
Ranch Hand

Joined: Oct 13, 2000
Posts: 39
What exactly is meant by 1. integer value 2. numeric value of a char literal???
Thanks in advance
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521

in�te�ger (nt-jr)
n. Mathematics
A member of the set of positive whole numbers (1, 2, 3, . . .), negative whole numbers (-1, -2, -3, . . .), and zero (0).
A complete unit or entity.

A character can hold alphabetic values as well as integer values. So if we have:
char c = '9';
the character could be alpha OR numberic. The numeric value of this character literal is the integer 9.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: integer/numeric value of char
It's not a secret anymore!