wood burning stoves*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Unsigned byte?? Is it possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Unsigned byte?? Is it possible?" Watch "Unsigned byte?? Is it possible?" New topic

Unsigned byte?? Is it possible?

sonir shah
Ranch Hand

Joined: Nov 01, 2001
Posts: 435
What is wrong will the code?

I tried running the code but it is giving some error
Are we allowed using the statement" unsigned byte b =0; "
Stefan Zoerner
Ranch Hand

Joined: Nov 29, 2001
Posts: 121
Hello Sonir!
In Java all integral types, other than char, are signed. There is no unsigned keyword as there is in C.
Greetings from Hamburg,

Stefan Zoerner
Author of German LDAP-Book
Committer at Apache Directory Project
It is sorta covered in the JavaRanch Style Guide.
subject: Unsigned byte?? Is it possible?
Similar Threads
Byte Manipulation
integral types
whts the out put
Wierd Socket Behavior