• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Integral Types

 
Roja Rani
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 7749
60
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JLS 4.2.1
 
Roja Rani
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Junilu,

I understood that char is also integral type. Thank you for the reply.
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Considered char ...??


[ October 04, 2005: Message edited by: A Kumar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic