thanks & regards,<br />Anuj Bhatnagar
SCJP 5.0<br />Preparing SCWCD
SCJP 5.0<br />Preparing SCWCD
A 1.0 [92%]<br />P 6.0 [preparing]
A 1.0 [92%]<br />P 6.0 [preparing]
Still, it doesnt answer how come you are able to modify a "private" string array from another class???
One more interesting thing is if I define private int in Person and try to do the same as name, it doesnt behave the same way - "works as expected".
SCJP5.0
A 1.0 [92%]<br />P 6.0 [preparing]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |