| Author |
Is this valid: All the Java integral types are signed numbers
|
Gitesh Ramchandani
Ranch Hand
Joined: Feb 28, 2007
Posts: 274
|
|
Is this valid: All the Java integral types are signed numbers. The char Java primitive is actually an unsigned integer type. pls help, regards, gitesh
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12911
|
|
According to section 4.1.2 of the Java Language Specification char is also regarded as an integral type, and you cannot store negative numbers in a char. So, the statement "all the Java integral types are signed numbers" is false.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
Gitesh Ramchandani
Ranch Hand
Joined: Feb 28, 2007
Posts: 274
|
|
|
thanks for help Jesper
|
 |
 |
|
|
subject: Is this valid: All the Java integral types are signed numbers
|
|
|