View Single Post
  #3 (permalink)  
Old 07-18-2007, 10:51 PM
snooze-g snooze-g is offline
Member
 
Join Date: Jul 2007
Posts: 8
snooze-g is on a distinguished road
No, of course it doesn't work, because Java work in referance system, for Java it mean that the referance of "Object a" can't be changed, not content but the referance.
For example.
Code:
public void function1(final Object a) { 1. a=new Object(); 2. a.text="new text"; }
It wil get a compiler time error on line 1, but not on line 2.

Best Snooze-G.
Thanks.

Last edited by snooze-g : 07-18-2007 at 10:55 PM.
Reply With Quote