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 Java Integral Types 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 "Java Integral Types" Watch "Java Integral Types" New topic

Java Integral Types

Roja Rani

Joined: Sep 28, 2005
Posts: 22

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

Joined: Feb 26, 2001
Posts: 6529

See the JLS 4.2.1

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

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: 980

Considered char ...??

[ October 04, 2005: Message edited by: A Kumar ]
I agree. Here's the link:
subject: Java Integral Types
It's not a secret anymore!