This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
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: 4442
    
    5

See the JLS 4.2.1


Junilu - [How to Ask Questions] [How to Answer Questions]
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: 979
Hi,

Considered char ...??


[ October 04, 2005: Message edited by: A Kumar ]
 
 
subject: Java Integral Types
 
Similar Threads
Doubt
Is this valid: All the Java integral types are signed numbers
"is a" and "has a"
Integral types in Java
true/false