Its all to do with the variables scope.
In java we can have the following types of variables:
instance variables
class variables
local variables
They have different scopes. Instance variables are 'alive' if the object they live in is alive.
Class variables are alive when the class is loaded.
Local variables are alive if the method they live in is still on the stack.
Parameters are local variables.
The variables you were referring to are local variables with the same names but in different methods, and different classes.
Theres more to this. Anyone have a link?
[ March 24, 2008: Message edited by: S Keith ]