Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Simple byte question


  • From: jboyd@xxxxxxxxxxxxxxxx (Jason Boyd)
  • Subject: [Advanced-java] Simple byte question
  • Date: Mon, 28 Jan 2002 13:11:38 -0500 (EST)

If (byte) 0x10 == 0001 0000
   (byte) 0X20 == 0010 0000
   (byte) 0x40 == 0100 0000

What is the equivalent of 1000 0000?

Is it -0x01 ? -0xFF ?

Part 2: How does one use unsigned types within Java without such trickery?