If you pass by reference you aren't writing
Java. Java works entirely on a pass-by-value basis. We have an
FAQ about that. You can also do a search on this forum and you find all sorts of useful things about it, including my post in
this thread, which has some useful links to other threads or resoures.