Re: byte data type
- From: googmeister@xxxxxxxxx
- Date: 14 Aug 2005 16:14:23 -0700
Roedy Green wrote:
> Java went with the signed tradition even though nowadays 99% of the
> time you want unsigned. Perhaps sun hardware is signed byte only.
I suspect most of the time it makes absolutely no difference whether it
is signed or unsigned. For the main operations on bytes (the bitwise
ones) signedness makes no difference except for right shift (but that's
why there's >> and >>>).
Just curious. What other operations are you doing on bytes where the
signedness matters? I would consider printing out bytes in decimal
or doing division on them to be uncommon, but maybe I am wrong.
.
- Follow-Ups:
- Re: byte data type
- From: Roedy Green
- Re: byte data type
- References:
- byte data type
- From: rahul8143
- Re: byte data type
- From: Roedy Green
- Re: byte data type
- From: Thomas Hawtin
- Re: byte data type
- From: Roedy Green
- byte data type
- Prev by Date: Re: Turning tables on interviewer
- Next by Date: Re: What makes two keys equal in a HashMap?
- Previous by thread: Re: byte data type
- Next by thread: Re: byte data type
- Index(es):