I'm not sure I understand your question about the two class loaders. However, there is something you should know about pass by value -vs- pass by reference in JAVA. This is a very very very simple rule: In JAVA, everything is passed by balue. There is no exception to that rule, none. Cheers JFB
Originally posted by Stefan Wagner: That's evidentally false. Nearly everything is passed by reference, except primitiv types (int, boolean, byte, char, float, ...). Arrays of primitiv types are passed by reference too.
Stefan, This an honest mistake from your part. But it IS a mistake. A mistake that many programmers are doing though, so don't beat yourself :-) I repeat, very loud and clear: In JAVA, everything is passed by value. It's as simple as that. And there is absolutely NO exception whatsoever. You should read the following from JavaRanch Campfire. Cheers JFB
A very good article! Please excuse my former posting. (editing for this PS It's a wonder how certain I used parameters till today - but now I may explain WHY it workes [ March 16, 2004: Message edited by: Stefan Wagner ]