| Author |
Boxing Query
|
narain ashwin
Ranch Hand
Joined: Dec 27, 2007
Posts: 48
|
|
Hi,
Was working out boxing concepts from KB book @ page 245, found something strange
it seems upto 127 ( to be precise in the byte range i.e -128 to 127 ) JVM uses the same object for subsequent assignments, whereas from 128 it creates different objects. Any generalization explanation?
|
I drink two cappuccinos a day.Is that of any help to solve java problems??
JBoss 6 - Admin console Username/pwd: admin/admin
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
There have been discussions in the past about this like here and here...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
 |
|
|
subject: Boxing Query
|
|
|