Object referred to by var 'newvec' will be eligible for garbage collection the moment it goes out of scope. There is no need to explicitely set it to null.
Following is the snippet from sun
java docs:
'An object is eligible for garbage collection when there are no more references to that object.
References that are held in a variable are usually dropped when the variable goes out of scope. Or, you can explicitly drop an object reference by setting the variable to the special value null. Remember that a program can have multiple references to the same object; all references to an object must be dropped before the object is eligible for garbage collection.'
Hope this helps.