aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Java Integral Types Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Java Integral Types" Watch "Java Integral Types" New topic
Author

Java Integral Types

Roja Rani
Greenhorn

Joined: Sep 28, 2005
Posts: 22
Hi,

Is the following statement True/False?

All the Java integral types are signed numbers

I expected True but the answer is false. I thought byte, short, int, long are integral types of Java and all these are signed numbers.

Anybody please explain how the above statement is False?
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4118
    
    2

See the JLS 4.2.1


Junilu - [How to Ask Questions] [How to Answer Questions] [MiH]
Roja Rani
Greenhorn

Joined: Sep 28, 2005
Posts: 22
Hi Junilu,

I understood that char is also integral type. Thank you for the reply.
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi,

Considered char ...??


[ October 04, 2005: Message edited by: A Kumar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Integral Types
 
Similar Threads
Doubt
true/false
Is this valid: All the Java integral types are signed numbers
"is a" and "has a"
Integral types in Java