First thing that is happens here is that JVM pass reference value s1 which is 6 to the method and when that method execution
is over then JVM add value of 20000 to the value of s1.
and s+=20000; works differently then s=s+2000; as
for s+=2000; implicit conversion is done from int to short.
and for s=s+2000; we need to do explicit conversion.
SCJP 6
New rule: no elephants at the chess tournament. Tiny ads are still okay.
Free, earth friendly heat - from the CodeRanch trailboss