aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is this valid: All the Java integral types are signed numbers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Is this valid: All the Java integral types are signed numbers" Watch "Is this valid: All the Java integral types are signed numbers" New topic
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
    
    3

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this valid: All the Java integral types are signed numbers
 
Similar Threads
Doubt
true/false
[signed , unsigned]...
Java Integral Types
Integral types in Java