funny Java

Feb. 4th, 2010 11:04 am
juan_gandhi: (Default)
[personal profile] juan_gandhi
byte b = Byte.parseByte("80", 16);

throws an exception "value out of range"

very, very smart...

Date: 2010-02-05 12:41 am (UTC)
From: [identity profile] ostapru.livejournal.com
А причем здесь беззнаковые?
80 < 127 ? ;)

Date: 2010-02-05 06:27 am (UTC)

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

May 2025

S M T W T F S
    1 2 3
456 7 8 9 10
11 121314151617
181920 21 222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 24th, 2025 02:28 pm
Powered by Dreamwidth Studios