File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Is Java has any unsigned words?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is Java has any unsigned words??" Watch "Is Java has any unsigned words??" New topic

Is Java has any unsigned words??

Raams Raj

Joined: Sep 10, 2009
Posts: 2

Is Java has any unsigned words?? if it there means, How it is used??
Henry Wong

Joined: Sep 28, 2004
Posts: 20365

Java doesn't support unsigned (primative) data types, but I guess you can create a class that does something similar.

The only unsigned data type is the "char" type, but that is not really for numbers.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Miklos Szeles
Ranch Hand

Joined: Oct 21, 2008
Posts: 142
All the primitve data types are signed in Java. There's one exception the char. Maybe that is exactly what you need:
primitive types
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45276
There is a manual for the predecessor of the Java language here. Look at the top left corner of page 8.
I agree. Here's the link:
subject: Is Java has any unsigned words??
It's not a secret anymore!